From 036663e76d76e4f5c7c6a4aa8717bf6ae0e3782f Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 29 Apr 2021 17:58:15 +0200 Subject: [PATCH] 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). --- src/wayland/textinput_v2_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/textinput_v2_interface.cpp b/src/wayland/textinput_v2_interface.cpp index 4ae3d541a4..0f53e3229c 100644 --- a/src/wayland/textinput_v2_interface.cpp +++ b/src/wayland/textinput_v2_interface.cpp @@ -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();