From 6aa2d123ae2a601a1775486f6988385124de9369 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 3 May 2024 00:31:48 +0100 Subject: virtual-keyboard: move to new impl --- src/helpers/WLClasses.hpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/helpers') 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 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 { -- cgit v1.2.3