inputmethod: deactivate the input method when we textinputv3 is committed as disabled

Fixes InputMethodTest::testEnableDisableV3 on my system when running on
Valgrind, should hopefully also fix on CI.
master
Aleix Pol 3 years ago committed by Vlad Zahorodnii
parent 03445424e9
commit f4715b9ac5

@ -325,12 +325,10 @@ void InputMethod::stateCommitted(uint32_t serial)
return;
}
if (!isActive() && textInputV3->isEnabled()) {
show();
if (auto inputContext = waylandServer()->inputMethod()->context()) {
inputContext->sendCommitState(serial);
}
auto inputContext = waylandServer()->inputMethod()->context();
inputContext->sendCommitState(serial);
setActive(textInputV3->isEnabled());
}
void InputMethod::setEnabled(bool enabled)

Loading…
Cancel
Save