summaryrefslogtreecommitdiff
path: root/src/managers/input/InputMethodRelay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
-rw-r--r--src/managers/input/InputMethodRelay.cpp5
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();
}