From ae52b7f4680716976d05b638aaa90e169d199117 Mon Sep 17 00:00:00 2001 From: Sungyoon Cho Date: Wed, 27 Mar 2024 00:16:09 +0900 Subject: [PATCH] textinput: fix ime when opening multiple windows (#5281) --- src/managers/input/TextInput.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();