mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 13:05:58 +01:00
IME: guard unfocused TIs in leave
This commit is contained in:
parent
568b352b23
commit
8c88689faf
1 changed files with 3 additions and 0 deletions
|
@ -506,6 +506,9 @@ void CInputMethodRelay::onTextInputLeave(wlr_surface* pSurface) {
|
||||||
if (!ti)
|
if (!ti)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (ti->pWlrInput && !ti->pWlrInput->focused_surface)
|
||||||
|
return;
|
||||||
|
|
||||||
if (ti->pWlrInput)
|
if (ti->pWlrInput)
|
||||||
wlr_text_input_v3_send_leave(ti->pWlrInput);
|
wlr_text_input_v3_send_leave(ti->pWlrInput);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue