diff options
| author | David Edmundson <davidedmundson@kde.org> | 2025-07-09 23:12:22 +0100 |
|---|---|---|
| committer | David Edmundson <davidedmundson@kde.org> | 2025-07-10 12:48:29 +0100 |
| commit | 614c309dc48d0e70dd4aca2a531cd3ab5a011694 (patch) | |
| tree | 3eb25dedbbdddcd0a08e81f0c64f02654a0fbdfd | |
| parent | d6abddcfc11999c68bff25237d5e55324c993092 (diff) | |
wayland: Use correct flush after changing cursor
Amends eab533a92bb3eb2b511eace76365896058248dcf.
The goal of the commit was to flush the queue to the wayland server
before potentially blocking, mDisplay->flushRequests is a very different
method that also dispatches incoming data.
Fixes: QTBUG-137393
Change-Id: Ia948429cf705e3195c2eef5cedfa2be39c887a33
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
| -rw-r--r-- | src/plugins/platforms/wayland/qwaylandcursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandcursor.cpp b/src/plugins/platforms/wayland/qwaylandcursor.cpp index 4967f9d46f4..a9cff626224 100644 --- a/src/plugins/platforms/wayland/qwaylandcursor.cpp +++ b/src/plugins/platforms/wayland/qwaylandcursor.cpp @@ -331,7 +331,7 @@ void QWaylandCursor::changeCursor(QCursor *cursor, QWindow *window) device->setCursor(cursor, bitmapBuffer, qCeil(waylandWindow->devicePixelRatio())); } - mDisplay->flushRequests(); + wl_display_flush(mDisplay->wl_display()); } } |
