From 90be3eb23e9bd71203b8b28410b1d23c19016c40 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Mon, 16 Mar 2015 18:06:41 +0300 Subject: [PATCH] Added running always on the first desktop to avoid rendering surface messing up --- qt/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index 4a157b4093..ae616afd53 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -21,12 +21,14 @@ #include #include #include + #include #else #include #include #include #include #include + #include #endif @@ -49,6 +51,10 @@ namespace qt MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this)) { + // Always runs on the first desktop + auto const desktop(QApplication::desktop()); + setGeometry(desktop->screenGeometry(0)); + m_pDrawWidget = new DrawWidget(this); QSurfaceFormat format = m_pDrawWidget->requestedFormat();