diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-07-17 11:45:17 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 09:24:13 -0400 |
commit | 9e8f952997d9e37ccc97aded89e16d52dfd46e60 (patch) | |
tree | d316c7c5d8adf51b93152add130f5ee25fe5b043 /rootston | |
parent | 415267ac1386cfbb0ffaa6ccea509ede2c5c3546 (diff) |
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.
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/text_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/text_input.c b/rootston/text_input.c index 70c92761..dcd81104 100644 --- a/rootston/text_input.c +++ b/rootston/text_input.c @@ -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) { |