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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user