From 3b2731839c3bca5d3c332762945f1ca78fee2300 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 26 Jun 2012 14:56:31 +0200 Subject: [PATCH] fix QWidget::showFullScreen on Windows When calling SetWindowPos in QWindowsWindow::setWindowState_sys we must inform the QWidget about the new size we have set. Task-number: QTBUG-26226 Change-Id: I42b01125f50a94cdb97026c74f5445f9ff47d8ba Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowswindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 2b86113..7fa43e0 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -1244,6 +1244,7 @@ void QWindowsWindow::setWindowState_sys(Qt::WindowState newState) if (newStates & Qt::WindowActive) swpf |= SWP_NOACTIVATE; SetWindowPos(m_data.hwnd, HWND_TOP, r.left(), r.top(), r.width(), r.height(), swpf); + QWindowSystemInterface::handleSynchronousGeometryChange(window(), r); } else { // Restore saved state. unsigned newStyle = m_savedStyle ? m_savedStyle : style(); -- 2.7.4