From c50ebcd83da11c145a07a3150573ebe456a3c0ab Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Sun, 26 May 2024 15:27:02 +0300 Subject: [PATCH] client: process exposure updates in the main thread This is important for when synchronous delivery is enabled as that should only happen from the main thread. Change-Id: I524443c6d2dd8dee8d36834b6d3032eb8f8c1750 Reviewed-by: Vlad Zahorodnii --- src/plugins/platforms/wayland/qwaylandwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 774de413f62..b9112d81ee1 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -850,7 +850,7 @@ bool QWaylandWindow::waitForFrameSync(int timeout) qCDebug(lcWaylandBackingstore) << "Didn't receive frame callback in time, window should now be inexposed"; mFrameCallbackTimedOut = true; mWaitingForUpdate = false; - updateExposure(); + QMetaObject::invokeMethod(this, &QWaylandWindow::updateExposure, Qt::QueuedConnection); } return !mWaitingForFrameCallback;