From 82aa9ce87cd81d07e8948aa86416dba9e175a777 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Mon, 16 Mar 2015 18:34:29 +0300 Subject: [PATCH] Added getting primary screen from Qt --- qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();