diff options
-rw-r--r-- | src/gui/kernel/qplatformwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp index ac82d56241..1f9183db44 100644 --- a/src/gui/kernel/qplatformwindow.cpp +++ b/src/gui/kernel/qplatformwindow.cpp @@ -509,7 +509,8 @@ QRect QPlatformWindow::initialGeometry(const QWindow *w, rect.setHeight(defaultHeight); } } - if (w->isTopLevel() && qt_window_private(const_cast<QWindow*>(w))->positionAutomatic) { + if (w->isTopLevel() && qt_window_private(const_cast<QWindow*>(w))->positionAutomatic + && w->type() != Qt::Popup) { if (const QPlatformScreen *platformScreen = QPlatformScreen::platformScreenForWindow(w)) { const QRect availableGeometry = platformScreen->availableGeometry(); // Center unless the geometry ( + unknown window frame) is too large for the screen). |