Commit 036663e7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

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).
parent 3b7a43e5
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment