aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar xdavidwu <xdavidwuph@gmail.com>2020-01-12 13:19:14 +0800
committerLibravatar Simon Ser <contact@emersion.fr>2020-04-04 11:42:04 +0200
commit9d455b48e47d2f4182ef55785db4d55355a75e4d (patch)
treef4801d4dc806f70fb7b65476184924310be0f88b
parentinput-method: remove surface listener before set (diff)
downloadsway-9d455b48e47d2f4182ef55785db4d55355a75e4d.tar.gz
sway-9d455b48e47d2f4182ef55785db4d55355a75e4d.tar.zst
sway-9d455b48e47d2f4182ef55785db4d55355a75e4d.zip
input-method: avoid and log unneeded set_focus
-rw-r--r--sway/input/text_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/text_input.c b/sway/input/text_input.c
index f3fca68e..551d6586 100644
--- a/sway/input/text_input.c
+++ b/sway/input/text_input.c
@@ -297,6 +297,9 @@ void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay,
297 if (surface != text_input->input->focused_surface) { 297 if (surface != text_input->input->focused_surface) {
298 relay_disable_text_input(relay, text_input); 298 relay_disable_text_input(relay, text_input);
299 wlr_text_input_v3_send_leave(text_input->input); 299 wlr_text_input_v3_send_leave(text_input->input);
300 } else {
301 sway_log(SWAY_DEBUG, "IM relay set_focus already focused");
302 continue;
300 } 303 }
301 } 304 }
302 305