aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-08 23:33:10 +0100
committerVaxry <[email protected]>2024-10-09 13:47:52 +0100
commit0cfbe618b5b434f5e7b56c8a17cc7a50bf22874c (patch)
tree823c71020064d7289c24de3e3f91b337fa71c162
parent7d0944acdf3c978bf1b5ddfb9b29ac8feb73b988 (diff)
downloadHyprland-0cfbe618b5b434f5e7b56c8a17cc7a50bf22874c.tar.gz
Hyprland-0cfbe618b5b434f5e7b56c8a17cc7a50bf22874c.zip
keyboard: update group state on change for the sym resolve state
fixes #8038
-rw-r--r--src/devices/IKeyboard.cpp3
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,