diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-01-01 14:48:32 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-01-01 14:48:32 +0100 |
| commit | bd7f9aad053866d5ca07195a79c1c7a1b060a8c1 (patch) | |
| tree | be43edc4d9b4b59f253979487d235649f3a7888a /src/managers/input/InputMethodRelay.cpp | |
| parent | 48a024e0322bbd7c4c88126498ec478444ec4cb2 (diff) | |
input/ti: avoid sending events to inactive TIs
ref https://github.com/hyprwm/Hyprland/discussions/12105
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 15dd249e..6ee3c836 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -76,6 +76,11 @@ CTextInput* CInputMethodRelay::getFocusedTextInput() { return nullptr; for (auto const& ti : m_textInputs) { + if (ti->focusedSurface() == Desktop::focusState()->surface() && ti->isEnabled()) + return ti.get(); + } + + for (auto const& ti : m_textInputs) { if (ti->focusedSurface() == Desktop::focusState()->surface()) return ti.get(); } |
