summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylandshmsurface.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-03-31 13:58:46 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-04-06 09:13:19 (GMT)
commit58b426fb62774b328be77f0c1b7bd31e0321daf0 (patch)
tree3345ee52ba6997e474e2229c4a9aa0f156785bf5 /src/plugins/platforms/wayland/qwaylandshmsurface.cpp
parentdb566040b68dd175200c1e99a0ae410ed89df25d (diff)
downloadQt-58b426fb62774b328be77f0c1b7bd31e0321daf0.zip
Qt-58b426fb62774b328be77f0c1b7bd31e0321daf0.tar.gz
Qt-58b426fb62774b328be77f0c1b7bd31e0321daf0.tar.bz2
Lighthouse: Make wayland event handling happen in a separate thread
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandshmsurface.cpp')
-rw-r--r--src/plugins/platforms/wayland/qwaylandshmsurface.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandshmsurface.cpp b/src/plugins/platforms/wayland/qwaylandshmsurface.cpp
index cc6b2a1..34f4436 100644
--- a/src/plugins/platforms/wayland/qwaylandshmsurface.cpp
+++ b/src/plugins/platforms/wayland/qwaylandshmsurface.cpp
@@ -111,9 +111,7 @@ void QWaylandShmWindowSurface::beginPaint(const QRegion &)
{
QWaylandShmWindow *waylandWindow = static_cast<QWaylandShmWindow *>(window()->platformWindow());
Q_ASSERT(waylandWindow->windowType() == QWaylandWindow::Shm);
- while (waylandWindow->waitingForFrameSync()) {
- mDisplay->iterate();
- }
+ waylandWindow->waitForFrameSync();
}
void QWaylandShmWindowSurface::flush(QWidget *widget, const QRegion &region, const QPoint &offset)