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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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