diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-10-08 13:15:53 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-10-08 13:15:58 +0100 |
| commit | e0cfbec66b97edb2957508152f32e77a1b181afc (patch) | |
| tree | 6b55bfc9e001b5d4c0732d29003f74c1e26b002a /src/devices/IKeyboard.hpp | |
| parent | b3a7e3109bf2b7b4422424471130197dc08baeb1 (diff) | |
keybinds: fixup xkb_states for resolve_by_sym
fixes #7750
Diffstat (limited to 'src/devices/IKeyboard.hpp')
| -rw-r--r-- | src/devices/IKeyboard.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/IKeyboard.hpp b/src/devices/IKeyboard.hpp index 759b2f58..76d2c31b 100644 --- a/src/devices/IKeyboard.hpp +++ b/src/devices/IKeyboard.hpp @@ -82,8 +82,9 @@ class IKeyboard : public IHID { bool keymapOverridden = false; xkb_layout_index_t activeLayout = 0; - xkb_state * xkbState = nullptr, *xkbStaticState /* Static state: never gets modifiers or layout changes sent, used for keybinds. */ = nullptr; - xkb_keymap* xkbKeymap = nullptr; + xkb_state * xkbState = nullptr, *xkbStaticState /* Static state: never gets modifiers or layout changes sent, used for keybinds. */ = nullptr, + *xkbSymState = nullptr /* Same as static but gets layouts */; + xkb_keymap* xkbKeymap = nullptr; struct { uint32_t depressed = 0, latched = 0, locked = 0, group = 0; |
