From 86ae447c5e6756d98584251f82c16f80ef5def26 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 10 May 2012 11:30:41 +0300 Subject: 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 --- src/quick/items/qquickwindowmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/items/qquickwindowmanager.cpp b/src/quick/items/qquickwindowmanager.cpp index 21ec695c72..339ed1c9b1 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) -- cgit v1.2.3