mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-17 04:25:58 +01:00
textinput: don't reset if ti isn't enabled (#7798)
This commit is contained in:
parent
e74efd87e5
commit
eb97d949aa
1 changed files with 7 additions and 0 deletions
|
@ -99,6 +99,13 @@ void CTextInput::onReset() {
|
|||
if (g_pInputManager->m_sIMERelay.m_pIME.expired())
|
||||
return;
|
||||
|
||||
if (!focusedSurface())
|
||||
return;
|
||||
|
||||
const auto PFOCUSEDTI = g_pInputManager->m_sIMERelay.getFocusedTextInput();
|
||||
if (!PFOCUSEDTI || PFOCUSEDTI != this)
|
||||
return;
|
||||
|
||||
g_pInputManager->m_sIMERelay.deactivateIME(this, false);
|
||||
g_pInputManager->m_sIMERelay.activateIME(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue