From f6deeed2f9d4521ee4f5f812484f3a52c96b5d9e Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Mon, 27 Feb 2017 23:27:38 +0100 Subject: main: Resizes main window before showing it in order to avoid glitches from asteroid-launcher with newer QtWaylandCompositor versions --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 9ec8283..f710ec4 100644 --- a/main.cpp +++ b/main.cpp @@ -17,6 +17,7 @@ #include #include +#include #include Q_DECL_EXPORT int main(int argc, char *argv[]) @@ -25,6 +26,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QScopedPointer view(MDeclarativeCache::qQuickView()); view->setSource(QUrl("qrc:/main.qml")); view->setTitle("Stopwatch"); - view->showFullScreen(); + view->resize(app->primaryScreen()->size()); + view->show(); return app->exec(); } -- cgit v1.2.3-70-g09d2