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]: 8348fc3ef8/types/seat/wlr_seat_keyboard.c (L163)
This commit is contained in:
Simon Ser 2020-11-06 19:14:55 +01:00
parent 8348fc3ef8
commit 372a52ecc0
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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;