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 <davidedmundson@kde.org>
This commit is contained in:
Liang Qi 2025-01-17 10:56:08 +01:00
parent dff8816c76
commit faea5e128a

View File

@ -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";
}