mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
8348fc3ef8
commit
372a52ecc0
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue