mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
text_input: Don't forget to send enter events
When we move from one surface to another we ought to handle leave for the old one but also send enter for the new one.
This commit is contained in:
parent
415267ac13
commit
9e8f952997
1 changed files with 3 additions and 1 deletions
|
@ -297,7 +297,9 @@ void roots_input_method_relay_set_focus(struct roots_input_method_relay *relay,
|
|||
relay_disable_text_input(relay, text_input);
|
||||
wlr_text_input_v3_send_leave(text_input->input);
|
||||
}
|
||||
} else if (surface
|
||||
}
|
||||
|
||||
if (surface
|
||||
&& wl_resource_get_client(text_input->input->resource)
|
||||
== wl_resource_get_client(surface->resource)) {
|
||||
if (relay->input_method) {
|
||||
|
|
Loading…
Reference in a new issue