IME: guard unfocused TIs in leave

This commit is contained in:
Vaxry 2024-03-22 18:58:28 +00:00
parent 568b352b23
commit 8c88689faf

View file

@ -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 {