On X11, fix ModifiersChanged from xdotool

xdotool will update modifiers before Xkb will actually send event
updating them, thus the modifiers will be updating even before the
actual update, which is unfortunate.

Links: https://github.com/alacritty/alacritty/issues/7502
This commit is contained in:
Kirill Chibisov
2023-12-30 09:05:03 +04:00
parent 2e610111b0
commit 3f82a6a90d
3 changed files with 32 additions and 37 deletions

View File

@@ -346,6 +346,7 @@ impl<T: 'static> EventLoop<T> {
held_key_press: None,
first_touch: None,
active_window: None,
modifiers: Default::default(),
is_composing: false,
};