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…
Add table
Add a link
Reference in a new issue