wayland: Simplify startup sequence
If there are no outputs, the drm backend will create a placeholder output, so continueStartupWithScreens() can be removed.
This commit is contained in:
parent
5bbd21f682
commit
c5d22b68b6
2 changed files with 0 additions and 11 deletions
|
@ -174,16 +174,6 @@ void ApplicationWayland::performStartup()
|
|||
void ApplicationWayland::continueStartupWithScene()
|
||||
{
|
||||
disconnect(Compositor::self(), &Compositor::sceneCreated, this, &ApplicationWayland::continueStartupWithScene);
|
||||
if (!platform()->enabledOutputs().isEmpty()) {
|
||||
continueStartupWithScreens();
|
||||
} else {
|
||||
connect(platform(), &Platform::screensQueried, this, &ApplicationWayland::continueStartupWithScreens);
|
||||
}
|
||||
}
|
||||
|
||||
void ApplicationWayland::continueStartupWithScreens()
|
||||
{
|
||||
disconnect(platform(), &Platform::screensQueried, this, &ApplicationWayland::continueStartupWithScreens);
|
||||
|
||||
// Note that we start accepting client connections after creating the Workspace.
|
||||
createWorkspace();
|
||||
|
|
|
@ -60,7 +60,6 @@ protected:
|
|||
void performStartup() override;
|
||||
|
||||
private:
|
||||
void continueStartupWithScreens();
|
||||
void continueStartupWithScene();
|
||||
void finalizeStartup();
|
||||
void startSession() override;
|
||||
|
|
Loading…
Reference in a new issue