~mterry/unity8/split

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Michael Terry
  • Date: 2014-05-20 03:01:51 UTC
  • Revision ID: michael.terry@canonical.com-20140520030151-ehzrrn689y2ht2jm
Move alpha-setting down so we don't show some extra frames with transparency

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
    }
161
161
    appendImportPaths(view->engine(), ::fallbackImportPaths());
162
162
 
 
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
 
163
172
#if UNITY8_GREETER
164
173
    if (isUbuntuMirServer) {
165
174
        // Add alpha to surface, so that the greeter can bleed through
173
182
    }
174
183
#endif
175
184
 
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
 
 
185
185
    int result = application->exec();
186
186
 
187
187
    delete view;