text-input-v3: move to new impl

This commit is contained in:
Vaxry 2024-04-25 23:27:25 +01:00
parent e87227e00a
commit 1d40af64d3
14 changed files with 316 additions and 72 deletions

View file

@ -3,8 +3,10 @@
#include <list>
#include "../../defines.hpp"
#include "../../helpers/WLClasses.hpp"
#include "../../helpers/signal/Listener.hpp"
#include "TextInput.hpp"
#include "InputMethodPopup.hpp"
#include <any>
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);