Skip to content

Commit

Permalink
textinput: fix ime when opening multiple windows (#5281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungyoonc authored Mar 26, 2024
1 parent 9b7ae25 commit ae52b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/managers/input/TextInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ void CTextInput::onDisabled() {
return;
}

leave();
if (!focusedSurface())
return;

if (!isV3())
leave();

hyprListener_surfaceDestroyed.removeCallback();
hyprListener_surfaceUnmapped.removeCallback();
Expand Down

0 comments on commit ae52b7f

Please sign in to comment.