textinput: fix ime when opening multiple windows (#5281)

This commit is contained in:
Sungyoon Cho
2024-03-27 00:16:09 +09:00
committed by GitHub
parent 9b7ae25ae8
commit ae52b7f468

View File

@@ -87,6 +87,10 @@ void CTextInput::onDisabled() {
return; return;
} }
if (!focusedSurface())
return;
if (!isV3())
leave(); leave();
hyprListener_surfaceDestroyed.removeCallback(); hyprListener_surfaceDestroyed.removeCallback();