Windows: Fix maximized window size when using the maximize

When the maximize is triggered by Qt, we get the WM_GETMINMAXINFO
too soon, as QWindow already says it's maximized, while it's still
in process of being.

Just removed the condition, doesn't seem to have any bad side-effect
This commit is contained in:
Sergio Martins
2020-04-20 20:55:11 +01:00
parent 6ee3cfbb2d
commit e8db004874

View File

@@ -291,8 +291,9 @@ bool WidgetResizeHandler::handleWindowsNativeEvent(FloatingWindow *w, const QByt
// According to microsoft docs it only works for the primary screen, but extrapolates for the others
QScreen *screen = QApplication::primaryScreen();
if (w->isMaximized() || !screen || w->windowHandle()->screen() != screen)
if (!screen || w->windowHandle()->screen() != screen) {
return false;
}
DefWindowProc(msg->hwnd, msg->message, msg->wParam, msg->lParam);