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.
This commit is contained in:
Aleix Pol 2021-05-13 16:04:03 +02:00 committed by Vlad Zahorodnii
parent 03445424e9
commit f4715b9ac5

View file

@ -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)