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:
parent
03445424e9
commit
f4715b9ac5
1 changed files with 3 additions and 5 deletions
|
@ -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…
Reference in a new issue