Don't swap buffers before the window is exposed.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Fri, 1 Jun 2012 09:24:04 +0000 (11:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 1 Jun 2012 11:33:45 +0000 (13:33 +0200)
commit2b369c85062936519ac7d1eb286342ce322c340b
tree97b1b32d34d54fe64c7ebf5c50387b8d8700322c
parentc4edcadf1f78ea915aaf62c73c79e244a150023c
Don't swap buffers before the window is exposed.

At app startup there is often a delay between setting
a window visible and the window being exposed by the
window manager.

Add check to canvas->isExposed() before calling
swapbuffers.

Change-Id: I5e588ab334a72c4fe817da44eff4c3dc785d6b1f
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickwindowmanager.cpp