mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:49:49 +01:00
fix rare IME crash
This commit is contained in:
parent
e0ada97a24
commit
ad42392856
1 changed files with 3 additions and 0 deletions
|
@ -382,6 +382,9 @@ void CInputMethodRelay::removeTextInput(wlr_text_input_v3* pInput) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInputMethodRelay::commitIMEState(wlr_text_input_v3* pInput) {
|
void CInputMethodRelay::commitIMEState(wlr_text_input_v3* pInput) {
|
||||||
|
if (!m_pWLRIME)
|
||||||
|
return;
|
||||||
|
|
||||||
if (pInput->active_features & WLR_TEXT_INPUT_V3_FEATURE_SURROUNDING_TEXT)
|
if (pInput->active_features & WLR_TEXT_INPUT_V3_FEATURE_SURROUNDING_TEXT)
|
||||||
wlr_input_method_v2_send_surrounding_text(m_pWLRIME, pInput->current.surrounding.text, pInput->current.surrounding.cursor, pInput->current.surrounding.anchor);
|
wlr_input_method_v2_send_surrounding_text(m_pWLRIME, pInput->current.surrounding.text, pInput->current.surrounding.cursor, pInput->current.surrounding.anchor);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue