diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp index 0e642f82..7bb6c81a 100644 --- a/src/managers/input/TextInput.cpp +++ b/src/managers/input/TextInput.cpp @@ -87,7 +87,11 @@ void CTextInput::onDisabled() { return; } - leave(); + if (!focusedSurface()) + return; + + if (!isV3()) + leave(); hyprListener_surfaceDestroyed.removeCallback(); hyprListener_surfaceUnmapped.removeCallback();