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:
parent
f4dad859c6
commit
16502a3dbc
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user