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>
This commit is contained in:
Johan Klokkhammer Helsing 2016-10-04 14:38:04 +02:00 committed by Johan Helsing
parent f4dad859c6
commit 16502a3dbc

View File

@ -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();
}
}