aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontend/qt_sdl/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 0447cbb..332e3e1 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1566,6 +1566,13 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
resize(Config::WindowWidth, Config::WindowHeight);
+#ifdef Q_OS_MAC
+ QPoint screenCenter = screen()->availableGeometry().center();
+ QRect frameGeo = frameGeometry();
+ frameGeo.moveCenter(screenCenter);
+ move(frameGeo.topLeft());
+#endif
+
if (oldMax)
showMaximized();
else