summaryrefslogtreecommitdiff
path: root/src/managers/input/InputMethodRelay.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-22 18:58:28 +0000
committerVaxry <vaxry@vaxry.net>2024-03-22 18:58:28 +0000
commit8c88689faf691a4369528e6d3d52c024cd61125d (patch)
tree35aac3cb401264965954eb53df3d9aaa93ddddd3 /src/managers/input/InputMethodRelay.cpp
parent568b352b235705d208df3190dfd878afd30913ca (diff)
IME: guard unfocused TIs in leave
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
-rw-r--r--src/managers/input/InputMethodRelay.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp
index 89454d5b..bdc46445 100644
--- a/src/managers/input/InputMethodRelay.cpp
+++ b/src/managers/input/InputMethodRelay.cpp
@@ -506,6 +506,9 @@ void CInputMethodRelay::onTextInputLeave(wlr_surface* pSurface) {
if (!ti)
return;
+ if (ti->pWlrInput && !ti->pWlrInput->focused_surface)
+ return;
+
if (ti->pWlrInput)
wlr_text_input_v3_send_leave(ti->pWlrInput);
else {