From faea5e128a29d1b75680283d7d496d08672998d5 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 17 Jan 2025 10:56:08 +0100 Subject: [PATCH] textinputv3: need to commit() after disable() https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/master/unstable/text-input/text-input-unstable-v3.xml disable() - Disable Text Input On A Surface Explicitly disable text input on the current surface (typically when there is no focus on any text entry inside the surface). State set with this request is double-buffered. It will get applied on the next zwp_text_input_v3.commit request. Done-by: lilydjwg li Fixes: QTBUG-132195 Pick-to: 6.9 6.8 Change-Id: Iaae1d306fba235b9fc3eba3f0215ca85375f3a3d Reviewed-by: David Edmundson --- src/plugins/platforms/wayland/qwaylandtextinputv3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp b/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp index 02097993945..b35f05b2f16 100644 --- a/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp +++ b/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp @@ -69,6 +69,7 @@ void QWaylandTextInputv3::zwp_text_input_v3_leave(struct ::wl_surface *surface) m_surface = nullptr; disable(); + commit(); qCDebug(qLcQpaWaylandTextInput) << Q_FUNC_INFO << "Done"; }