summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-01-15 16:53:47 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-18 15:42:59 +0100
commitaacf4d0263f94724379dc48cfbbf8d98265d70a0 (patch)
tree2df31f85d0b693f014cb28537de3a7fe5b90697c /src/plugins/platforms
parentd6506c129d698c677f2d7418759b147007ca15a2 (diff)
Fix a crash when minimizing a QQuickWindow.
Send empty expose event and flush queue when minimizing. Task-number: QTBUG-28439 Task-number: QTBUG-26424 Change-Id: I2e921a86660f946ced7af735cdf197fb666e2934 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/windows/qwindowswindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp
index 14040db5df..42a301cbb2 100644
--- a/src/plugins/platforms/windows/qwindowswindow.cpp
+++ b/src/plugins/platforms/windows/qwindowswindow.cpp
@@ -1260,6 +1260,10 @@ void QWindowsWindow::handleWindowStateChange(Qt::WindowState state)
setFlag(FrameDirty);
m_windowState = state;
QWindowSystemInterface::handleWindowStateChanged(window(), state);
+ if (state == Qt::WindowMinimized) {
+ handleHidden();
+ QWindowSystemInterface::flushWindowSystemEvents(); // Tell QQuickWindow to stop rendering now.
+ }
}
void QWindowsWindow::setWindowState(Qt::WindowState state)