Windows: Fix bug where windows stopped painting after a restore.
authorSérgio Martins <sergio.martins@kdab.com>
Fri, 15 Nov 2013 15:36:18 +0000 (15:36 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 18 Nov 2013 09:14:30 +0000 (10:14 +0100)
commitcd93a2c0e14090cecbe3e83748937dcd15d98dbe
treed6035298490fee9211918f6893a14135cee46f3f
parentaafbd7392ead765c2038a1ac6b569d083effb81d
Windows: Fix bug where windows stopped painting after a restore.

This is an improvement over 6800728d where we only fixed it if
the window was in "normal" state (Qt::WindowNoState) before
minimizing.

With this patch, if the window was previously maximized or
full-screen it will also get the expose events when being
restored.

Change-Id: I4a30423145e0999c5d0a5ee2a989730b83f4e3f2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
src/plugins/platforms/windows/qwindowswindow.cpp