aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-22 18:58:28 +0000
committerVaxry <[email protected]>2024-03-22 18:58:28 +0000
commit8c88689faf691a4369528e6d3d52c024cd61125d (patch)
tree35aac3cb401264965954eb53df3d9aaa93ddddd3
parent568b352b235705d208df3190dfd878afd30913ca (diff)
downloadHyprland-8c88689faf691a4369528e6d3d52c024cd61125d.tar.gz
Hyprland-8c88689faf691a4369528e6d3d52c024cd61125d.zip
IME: guard unfocused TIs in leave
-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 {