Skip to content

Commit

Permalink
input-method: avoid and log unneeded set_focus
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Feb 27, 2020
1 parent 11111ba commit 7195ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sway/input/text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay,
if (surface != text_input->input->focused_surface) {
relay_disable_text_input(relay, text_input);
wlr_text_input_v3_send_leave(text_input->input);
} else {
sway_log(SWAY_DEBUG, "IM relay set_focus already focused");
continue;
}
}

Expand Down

0 comments on commit 7195ddc

Please sign in to comment.