inputmethod: update state on new value not cached value

We want to update the inputpanel state on new value which is being set
and not based on the cached value.

Fixes the keyboard going in wrong mode like pre-edit mode when closed
and re-opened.
This commit is contained in:
Bhushan Shah 2021-04-27 12:35:26 +05:30 committed by Bhushan Shah
parent 257d8f32cf
commit 18af4032e4

View file

@ -134,9 +134,7 @@ void InputMethod::setActive(bool active)
}
waylandServer()->inputMethod()->sendActivate();
if (m_active) {
adoptInputMethodContext();
}
} else {
updateInputPanelState();
}