diff options
| author | Sungyoon Cho <sungyoon@sungyooncho.dev> | 2024-03-27 00:16:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 15:16:09 +0000 |
| commit | ae52b7f4680716976d05b638aaa90e169d199117 (patch) | |
| tree | 6d96cf1028a718cfe73763b35291741ec9fa1334 /src/managers/input/TextInput.cpp | |
| parent | 9b7ae25ae83b5b0d6f61fe542391301a57d31270 (diff) | |
textinput: fix ime when opening multiple windows (#5281)
Diffstat (limited to 'src/managers/input/TextInput.cpp')
| -rw-r--r-- | src/managers/input/TextInput.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |
