diff options
author | Vaxry <[email protected]> | 2024-10-08 23:33:10 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-08 23:33:10 +0100 |
commit | ac658500fbebe607f2db83f11c37f0a3a05ef734 (patch) | |
tree | 4a0f7e393c98b8905db24b6673525ff70728c783 | |
parent | 8cced091f53c92bc8de97b9d3dac20b31980af70 (diff) | |
download | Hyprland-ac658500fbebe607f2db83f11c37f0a3a05ef734.tar.gz Hyprland-ac658500fbebe607f2db83f11c37f0a3a05ef734.zip |
keyboard: update group state on change for the sym resolve state
fixes #8038
-rw-r--r-- | src/devices/IKeyboard.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/IKeyboard.cpp b/src/devices/IKeyboard.cpp index 3300f252..d1119772 100644 --- a/src/devices/IKeyboard.cpp +++ b/src/devices/IKeyboard.cpp @@ -392,6 +392,9 @@ void IKeyboard::updateXkbStateWithKey(uint32_t xkbKey, bool pressed) { xkb_state_update_key(xkbState, xkbKey, pressed ? XKB_KEY_DOWN : XKB_KEY_UP); if (updateModifiersState()) { + if (xkbSymState) + xkb_state_update_mask(xkbSymState, 0, 0, 0, 0, 0, modifiersState.group); + keyboardEvents.modifiers.emit(SModifiersEvent{ .depressed = modifiersState.depressed, .latched = modifiersState.latched, |