QWindowsWindow: fix state transition FullScreen -> Minimized
When going from FullScreen to Minimized we must not restore the window's saved geometry. Task-number: QTBUG-26420 Change-Id: I75af8bb9aeb38f5bc24bc4e0b725786c8c22fdb3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
a2bd91c5e9
commit
1a86e35709
@ -1251,7 +1251,7 @@ void QWindowsWindow::setWindowState_sys(Qt::WindowState newState)
|
||||
swpf |= SWP_NOACTIVATE;
|
||||
SetWindowPos(m_data.hwnd, HWND_TOP, r.left(), r.top(), r.width(), r.height(), swpf);
|
||||
QWindowSystemInterface::handleSynchronousGeometryChange(window(), r);
|
||||
} else {
|
||||
} else if (!(newStates & Qt::WindowMinimized)) {
|
||||
// Restore saved state.
|
||||
unsigned newStyle = m_savedStyle ? m_savedStyle : style();
|
||||
if (visible)
|
||||
|
Loading…
Reference in New Issue
Block a user