textinputv3: activate the input method when textinput says it's enabled
This commit is contained in:
parent
341ec55c9e
commit
64178a0536
1 changed files with 11 additions and 2 deletions
|
@ -317,10 +317,19 @@ void InputMethod::textInputInterfaceV3EnabledChanged()
|
|||
|
||||
void InputMethod::stateCommitted(uint32_t serial)
|
||||
{
|
||||
auto inputContext = waylandServer()->inputMethod()->context();
|
||||
if (!inputContext) {
|
||||
if (!isEnabled()) {
|
||||
return;
|
||||
}
|
||||
TextInputV3Interface *textInputV3 = waylandServer()->seat()->textInputV3();
|
||||
if (!textInputV3) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isActive() && textInputV3->isEnabled()) {
|
||||
show();
|
||||
}
|
||||
|
||||
auto inputContext = waylandServer()->inputMethod()->context();
|
||||
inputContext->sendCommitState(serial);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue