diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-02-19 20:54:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-19 20:54:53 +0000 |
| commit | 1b56cc4e99c391a94fc05a24e1f71c8e425168f1 (patch) | |
| tree | 110cf0d60d9f01bcbcf3624458afa5ededb5fe8a /src/managers/input/InputMethodRelay.cpp | |
| parent | 6e16627cbcb5d4712195c97e106f2198076c8aff (diff) | |
Added an Event Hook System (#1578)
* added an eventHookSystem
* Add all socket2 events to hooks
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 20057a6a..95f0b6fb 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -2,7 +2,9 @@ #include "InputManager.hpp" #include "../../Compositor.hpp" -CInputMethodRelay::CInputMethodRelay() {} +CInputMethodRelay::CInputMethodRelay() { + g_pHookSystem->hookDynamic("keyboardFocus", [&](void* self, std::any param) { onKeyboardFocus(std::any_cast<wlr_surface*>(param)); }); +} void CInputMethodRelay::onNewIME(wlr_input_method_v2* pIME) { if (m_pWLRIME) { |
