summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-10-04 14:38:04 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-10-04 15:15:13 +0000
commitb22a454f280229df41b9a6eafaa80784c997c887 (patch)
tree32969ffce8a51c1c6dc1358d99bc9d94094962ca
parent06b85679becd39f1f051f53b108ba5d06e9bdcb8 (diff)
Make sure we send frameSwapped signals
QWaylandWindow::deliverUpdateRequest() may trigger a new requestUpdate, so we must clear the mUpdateRequested flag first, so we don't accidentally clear the flag that belongs to the next update. Fixes missing updates on brcm-egl. Change-Id: Ib0decd5e8eb58505ccb94e93de494163ce0fd2ec Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/client/qwaylandwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 9c42ac49c..e8f3ceb4f 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -494,8 +494,8 @@ void QWaylandWindow::frameCallback(void *data, struct wl_callback *callback, uin
self->mFrameCallback = 0;
if (self->mUpdateRequested) {
QWindowPrivate *w = QWindowPrivate::get(self->window());
- w->deliverUpdateRequest();
self->mUpdateRequested = false;
+ w->deliverUpdateRequest();
}
}