From 38169c8fddcd21bd2c4ccebfa0c32100d5356aa0 Mon Sep 17 00:00:00 2001 From: usering-around Date: Thu, 11 Sep 2025 20:42:20 +0300 Subject: input: support xkb v2 format (#11482) --- src/devices/IKeyboard.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/devices/IKeyboard.hpp') diff --git a/src/devices/IKeyboard.hpp b/src/devices/IKeyboard.hpp index c7832548..9e4bea4e 100644 --- a/src/devices/IKeyboard.hpp +++ b/src/devices/IKeyboard.hpp @@ -99,7 +99,8 @@ class IKeyboard : public IHID { xkb_state* m_xkbStaticState = nullptr; xkb_state* m_xkbSymState = nullptr; // same as static but gets layouts - xkb_keymap* m_xkbKeymap = nullptr; + xkb_keymap* m_xkbKeymap = nullptr; + xkb_keymap* m_xkbKeymapV1 = nullptr; struct { uint32_t depressed = 0, latched = 0, locked = 0, group = 0; @@ -113,6 +114,9 @@ class IKeyboard : public IHID { std::string m_xkbKeymapString = ""; Hyprutils::OS::CFileDescriptor m_xkbKeymapFD; + std::string m_xkbKeymapV1String = ""; + Hyprutils::OS::CFileDescriptor m_xkbKeymapV1FD; + SStringRuleNames m_currentRules; int m_repeatRate = 0; int m_repeatDelay = 0; -- cgit v1.2.3