From 1d40af64d352bd5a87c7d53a52707fc5cfc6940e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 25 Apr 2024 23:27:25 +0100 Subject: text-input-v3: move to new impl --- src/managers/input/InputMethodRelay.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/managers/input/InputMethodRelay.hpp') diff --git a/src/managers/input/InputMethodRelay.hpp b/src/managers/input/InputMethodRelay.hpp index 01d36675..1b2cb07a 100644 --- a/src/managers/input/InputMethodRelay.hpp +++ b/src/managers/input/InputMethodRelay.hpp @@ -3,8 +3,10 @@ #include #include "../../defines.hpp" #include "../../helpers/WLClasses.hpp" +#include "../../helpers/signal/Listener.hpp" #include "TextInput.hpp" #include "InputMethodPopup.hpp" +#include class CInputManager; class CHyprRenderer; @@ -15,7 +17,7 @@ class CInputMethodRelay { CInputMethodRelay(); void onNewIME(wlr_input_method_v2*); - void onNewTextInput(wlr_text_input_v3*); + void onNewTextInput(std::any tiv3); void onNewTextInput(STextInputV1* pTIV1); wlr_input_method_v2* m_pWLRIME = nullptr; @@ -47,6 +49,10 @@ class CInputMethodRelay { wlr_surface* m_pLastKbFocus = nullptr; + struct { + CHyprSignalListener newTIV3; + } listeners; + DYNLISTENER(textInputNew); DYNLISTENER(IMECommit); DYNLISTENER(IMEDestroy); -- cgit v1.2.3