Skip to content

Commit

Permalink
main: Resizes main window before showing it in order to avoid glitche…
Browse files Browse the repository at this point in the history
…s from asteroid-launcher with newer QtWaylandCompositor versions
  • Loading branch information
FlorentRevest committed Feb 27, 2017
1 parent 2a8f7f2 commit d907c4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Expand Up @@ -18,6 +18,7 @@
#include <QQuickView>
#include <QTranslator>
#include <QGuiApplication>
#include <QScreen>
#include <MDeclarativeCache>

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

0 comments on commit d907c4b

Please sign in to comment.