mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
textinput: don't reset if ti isn't enabled (#7798)
This commit is contained in:
@@ -99,6 +99,13 @@ void CTextInput::onReset() {
|
|||||||
if (g_pInputManager->m_sIMERelay.m_pIME.expired())
|
if (g_pInputManager->m_sIMERelay.m_pIME.expired())
|
||||||
return;
|
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.deactivateIME(this, false);
|
||||||
g_pInputManager->m_sIMERelay.activateIME(this);
|
g_pInputManager->m_sIMERelay.activateIME(this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user