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 committed by GitHub
parent 5a1d3e4656
commit 5e106b4dbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 37 deletions

View file

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