diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index ae616afd53..e08d68bb35 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -53,7 +53,7 @@ MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this) { // Always runs on the first desktop auto const desktop(QApplication::desktop()); - setGeometry(desktop->screenGeometry(0)); + setGeometry(desktop->screenGeometry(desktop->primaryScreen())); m_pDrawWidget = new DrawWidget(this); QSurfaceFormat format = m_pDrawWidget->requestedFormat();