textinputv2: announce the input panel to be hidden as the instance gets disabled
Otherwise we disable it and all events will be disabled (since surface gets cleared). This is especially useful since otherwise we lose synchronicity with the client and weird behaviours happen (like when the client thinks it has a keyboard but it actually does not).
This commit is contained in:
parent
3b7a43e54b
commit
036663e76d
1 changed files with 3 additions and 0 deletions
|
@ -293,6 +293,9 @@ void TextInputV2InterfacePrivate::zwp_text_input_v2_disable(Resource *resource,
|
|||
{
|
||||
Q_UNUSED(resource)
|
||||
Q_UNUSED(s)
|
||||
|
||||
q->setInputPanelState(false, {0, 0, 0, 0});
|
||||
|
||||
surface.clear();
|
||||
enabled = false;
|
||||
emit q->enabledChanged();
|
||||
|
|
Loading…
Reference in a new issue