mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 21:46:00 +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)
|
||||
return;
|
||||
|
||||
if (ti->pWlrInput && !ti->pWlrInput->focused_surface)
|
||||
return;
|
||||
|
||||
if (ti->pWlrInput)
|
||||
wlr_text_input_v3_send_leave(ti->pWlrInput);
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue