mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 22:05:59 +01:00
parent
e1e41e5448
commit
4156b55cf9
1 changed files with 9 additions and 0 deletions
|
@ -96,6 +96,9 @@ void CTextInput::onDisabled() {
|
|||
hyprListener_surfaceDestroyed.removeCallback();
|
||||
hyprListener_surfaceUnmapped.removeCallback();
|
||||
|
||||
if (!g_pInputManager->m_sIMERelay.m_pWLRIME->active)
|
||||
return;
|
||||
|
||||
wlr_input_method_v2_send_deactivate(g_pInputManager->m_sIMERelay.m_pWLRIME);
|
||||
g_pInputManager->m_sIMERelay.commitIMEState(this);
|
||||
}
|
||||
|
@ -204,6 +207,12 @@ void CTextInput::leave() {
|
|||
}
|
||||
|
||||
setFocusedSurface(nullptr);
|
||||
|
||||
if (!g_pInputManager->m_sIMERelay.m_pWLRIME->active)
|
||||
return;
|
||||
|
||||
wlr_input_method_v2_send_deactivate(g_pInputManager->m_sIMERelay.m_pWLRIME);
|
||||
g_pInputManager->m_sIMERelay.commitIMEState(this);
|
||||
}
|
||||
|
||||
wlr_surface* CTextInput::focusedSurface() {
|
||||
|
|
Loading…
Reference in a new issue