Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
main: Resizes main window before showing it in order to avoid glitche…
…s from asteroid-launcher with newer QtWaylandCompositor versions
  • Loading branch information
FlorentRevest committed Feb 27, 2017
1 parent f4f96da commit f6deeed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Expand Up @@ -17,6 +17,7 @@

#include <QQuickView>
#include <QGuiApplication>
#include <QScreen>
#include <MDeclarativeCache>

Q_DECL_EXPORT int main(int argc, char *argv[])
Expand All @@ -25,6 +26,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QScopedPointer<QQuickView> view(MDeclarativeCache::qQuickView());
view->setSource(QUrl("qrc:/main.qml"));
view->setTitle("Stopwatch");
view->showFullScreen();
view->resize(app->primaryScreen()->size());
view->show();
return app->exec();
}

0 comments on commit f6deeed

Please sign in to comment.