From: Laszlo Agocs Date: Thu, 10 May 2012 08:30:41 +0000 (+0300) Subject: Make sure there is a proper update when exposing with trivial X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=86ae447c5e6756d98584251f82c16f80ef5def26;p=konrad%2Fqtdeclarative.git Make sure there is a proper update when exposing with trivial We need to have updatePending set otherwise there will be no swapBuffers() which looks quite bad when minimizing and restoring a window on xcb for instance. (we end up with having no window content shown until there is a proper update triggered for whatever reason) Change-Id: Ia58bbe92dbb7fb7e184828dc9ffbf0ddce0131e1 Reviewed-by: Gunnar Sletta --- diff --git a/src/quick/items/qquickwindowmanager.cpp b/src/quick/items/qquickwindowmanager.cpp index 21ec695..339ed1c 100644 --- a/src/quick/items/qquickwindowmanager.cpp +++ b/src/quick/items/qquickwindowmanager.cpp @@ -1227,7 +1227,7 @@ void QQuickTrivialWindowManager::renderCanvas(QQuickCanvas *canvas) void QQuickTrivialWindowManager::exposureChanged(QQuickCanvas *canvas) { if (canvas->isExposed()) - renderCanvas(canvas); + maybeUpdate(canvas); } QImage QQuickTrivialWindowManager::grab(QQuickCanvas *canvas)