diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-03-14 12:57:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 12:57:50 +0000 |
| commit | 5dc1a5fec631ddd0136af28c901e8c962548d497 (patch) | |
| tree | 92068b313e3ac66caf3b5256a5b67ec973515a46 /src/managers/input/InputMethodRelay.hpp | |
| parent | e749af7b60386f4ff414ef3e2e804523046e46a9 (diff) | |
input: text-input-v1 support (#1778)
support zwp_text_input_v1
---------
Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
Diffstat (limited to 'src/managers/input/InputMethodRelay.hpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/managers/input/InputMethodRelay.hpp b/src/managers/input/InputMethodRelay.hpp index 76746487..83332285 100644 --- a/src/managers/input/InputMethodRelay.hpp +++ b/src/managers/input/InputMethodRelay.hpp @@ -4,6 +4,7 @@ #include "../../helpers/WLClasses.hpp" class CInputManager; +struct STextInputV1; class CInputMethodRelay { public: @@ -14,8 +15,8 @@ class CInputMethodRelay { wlr_input_method_v2* m_pWLRIME = nullptr; - void commitIMEState(wlr_text_input_v3*); - void removeTextInput(wlr_text_input_v3*); + void commitIMEState(STextInput* pInput); + void removeTextInput(STextInput* pInput); void onKeyboardFocus(wlr_surface*); @@ -43,8 +44,10 @@ class CInputMethodRelay { DYNLISTENER(IMEGrab); DYNLISTENER(IMENewPopup); - void createNewTextInput(wlr_text_input_v3*); + void createNewTextInput(wlr_text_input_v3*, STextInputV1* tiv1 = nullptr); + wlr_surface* focusedSurface(STextInput* pInput); friend class CHyprRenderer; friend class CInputManager; + friend class CTextInputV1ProtocolManager; };
\ No newline at end of file |
