aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-06 19:14:55 +0100
committerSimon Ser <contact@emersion.fr>2020-11-06 19:14:55 +0100
commit372a52ecc08aff003b3024e852e848024b699a15 (patch)
tree322dde1495b522589c5dce5f1b056f054e8cd932
parent8348fc3ef8b992fce097bef81111eda3677957f4 (diff)
input-method: send modifiers in set_keyboard
Otherwise the client might have an outdated modifiers state. The same is done in wlr_seat_keyboard [1]. [1]: https://github.com/swaywm/wlroots/blob/8348fc3ef8b992fce097bef81111eda3677957f4/types/seat/wlr_seat_keyboard.c#L163
-rw-r--r--types/wlr_input_method_v2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/types/wlr_input_method_v2.c b/types/wlr_input_method_v2.c
index cb248288..29b0d028 100644
--- a/types/wlr_input_method_v2.c
+++ b/types/wlr_input_method_v2.c
@@ -259,6 +259,9 @@ void wlr_input_method_keyboard_grab_v2_set_keyboard(
handle_keyboard_destroy;
wl_signal_add(&keyboard->events.destroy,
&keyboard_grab->keyboard_destroy);
+
+ wlr_input_method_keyboard_grab_v2_send_modifiers(keyboard_grab,
+ &keyboard->modifiers);
}
keyboard_grab->keyboard = keyboard;