@@ -160,6 +160,15 @@ Load the testability driver");
160160 }
161161 appendImportPaths(view->engine(), ::fallbackImportPaths());
162162
163+ view->setSource(source);
164+ view->setColor(Qt::transparent);
165+
166+ if (qgetenv("QT_QPA_PLATFORM") == "ubuntu" || isUbuntuMirServer || parser.isSet(fullscreenOption)) {
167+ view->showFullScreen();
168+ } else {
169+ view->show();
170+ }
171+
163172#if UNITY8_GREETER
164173 if (isUbuntuMirServer) {
165174 // Add alpha to surface, so that the greeter can bleed through
@@ -173,15 +182,6 @@ Load the testability driver");
173182 }
174183#endif
175184
176− view->setSource(source);
177− view->setColor(Qt::transparent);
178−
179− if (qgetenv("QT_QPA_PLATFORM") == "ubuntu" || isUbuntuMirServer || parser.isSet(fullscreenOption)) {
180− view->showFullScreen();
181− } else {
182− view->show();
183− }
184−
185185 int result = application->exec();
186186
187187 delete view;