Make sure there is a proper update when exposing with trivial
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Thu, 10 May 2012 08:30:41 +0000 (11:30 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 May 2012 13:37:56 +0000 (15:37 +0200)
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 <gunnar.sletta@nokia.com>
src/quick/items/qquickwindowmanager.cpp

index 21ec695..339ed1c 100644 (file)
@@ -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)