diff options
author | Vaxry <[email protected]> | 2024-03-22 18:58:28 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-22 18:58:28 +0000 |
commit | 8c88689faf691a4369528e6d3d52c024cd61125d (patch) | |
tree | 35aac3cb401264965954eb53df3d9aaa93ddddd3 | |
parent | 568b352b235705d208df3190dfd878afd30913ca (diff) | |
download | Hyprland-8c88689faf691a4369528e6d3d52c024cd61125d.tar.gz Hyprland-8c88689faf691a4369528e6d3d52c024cd61125d.zip |
IME: guard unfocused TIs in leave
-rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 3 |
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 { |