From 18af4032e4ec75daae6c358631392b7cee8bd2f5 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Tue, 27 Apr 2021 12:35:26 +0530 Subject: [PATCH] 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. --- src/inputmethod.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 73ae52d7a7..8efd4795b8 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -134,9 +134,7 @@ void InputMethod::setActive(bool active) } waylandServer()->inputMethod()->sendActivate(); - if (m_active) { - adoptInputMethodContext(); - } + adoptInputMethodContext(); } else { updateInputPanelState(); }