Commit 18af4032 authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Bhushan Shah
Browse files

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.
parent 257d8f32
...@@ -134,9 +134,7 @@ void InputMethod::setActive(bool active) ...@@ -134,9 +134,7 @@ void InputMethod::setActive(bool active)
} }
waylandServer()->inputMethod()->sendActivate(); waylandServer()->inputMethod()->sendActivate();
if (m_active) {
adoptInputMethodContext(); adoptInputMethodContext();
} else { } else {
updateInputPanelState(); updateInputPanelState();
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment