diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-03 00:31:48 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-03 00:31:48 +0100 |
| commit | 6aa2d123ae2a601a1775486f6988385124de9369 (patch) | |
| tree | b72c13eb2e3b1834793886d1ba744f3a6116185b /src/helpers | |
| parent | a3ca016d42283ce1d2d5ffca40b93123b4290f4b (diff) | |
virtual-keyboard: move to new impl
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 2f14059b..d9b3ba20 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -10,6 +10,7 @@ #include "Region.hpp" class CMonitor; +class CVirtualKeyboard; struct SRenderData { CMonitor* pMonitor; @@ -71,23 +72,25 @@ struct SKeyboard { DYNLISTENER(keyboardKeymap); DYNLISTENER(keyboardDestroy); - bool isVirtual = false; - bool active = false; - bool enabled = true; + bool isVirtual = false; + bool active = false; + bool enabled = true; - xkb_layout_index_t activeLayout = 0; - xkb_state* xkbTranslationState = nullptr; + WP<CVirtualKeyboard> virtKeyboard; - std::string name = ""; - std::string xkbFilePath = ""; + xkb_layout_index_t activeLayout = 0; + xkb_state* xkbTranslationState = nullptr; - SStringRuleNames currentRules; - int repeatRate = 0; - int repeatDelay = 0; - int numlockOn = -1; - bool resolveBindsBySym = false; + std::string name = ""; + std::string xkbFilePath = ""; - void updateXKBTranslationState(xkb_keymap* const keymap = nullptr); + SStringRuleNames currentRules; + int repeatRate = 0; + int repeatDelay = 0; + int numlockOn = -1; + bool resolveBindsBySym = false; + + void updateXKBTranslationState(xkb_keymap* const keymap = nullptr); // For the list lookup bool operator==(const SKeyboard& rhs) const { |
