mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 07:55:59 +01: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…
Reference in a new issue