From 41d494860601f00b674f5a98d9482bb56cbd9d7c Mon Sep 17 00:00:00 2001 From: Inho Lee Date: Thu, 3 Oct 2024 09:48:20 +0200 Subject: [PATCH] Revert "TextInputV3: Prevent a recursive update call" This reverts commit 0b1d950e437bd0e112b7f4f25b42f3318634200a. set_cursor_rectangle needs commit for the proper cursor location. Fixes: QTBUG-129584 Reopens: QTBUG-126275 Pick-to: 6.8 6.7 Change-Id: Ibb11cbceab9cf00a4a2fa5ed3efc5e4ddddcd8d7 Reviewed-by: Eskil Abrahamsen Blomfeldt --- 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 a4ff7100649..bb449c9d60d 100644 --- a/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp +++ b/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp @@ -238,6 +238,7 @@ void QWaylandTextInputv3::updateState(Qt::InputMethodQueries queries, uint32_t f if (surfaceRect != m_cursorRect) { set_cursor_rectangle(surfaceRect.x(), surfaceRect.y(), surfaceRect.width(), surfaceRect.height()); m_cursorRect = surfaceRect; + needsCommit = true; } }