From 372a52ecc08aff003b3024e852e848024b699a15 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Nov 2020 19:14:55 +0100 Subject: [PATCH] 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 --- types/wlr_input_method_v2.c | 3 +++ 1 file changed, 3 insertions(+) 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;