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:
Vlad Zahorodnii 2021-08-25 20:48:49 +03:00
parent 5bbd21f682
commit c5d22b68b6
2 changed files with 0 additions and 11 deletions

View file

@ -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();

View file

@ -60,7 +60,6 @@ protected:
void performStartup() override;
private:
void continueStartupWithScreens();
void continueStartupWithScene();
void finalizeStartup();
void startSession() override;