Set compositor On status before setupCompositing()
This is needed to ensure that Compositor::compositing() returns true when Toplevel::setupCompositing() is called.
This commit is contained in:
parent
d74e81bdd0
commit
ae70b17c79
1 changed files with 2 additions and 1 deletions
|
@ -330,6 +330,8 @@ void Compositor::startupWithWorkspace()
|
|||
registerRenderLoop(platform->renderLoop(), nullptr);
|
||||
}
|
||||
|
||||
m_state = State::On;
|
||||
|
||||
// Sets also the 'effects' pointer.
|
||||
kwinApp()->platform()->createEffectsHandler(this, m_scene);
|
||||
connect(Workspace::self(), &Workspace::deletedRemoved, m_scene, &Scene::removeToplevel);
|
||||
|
@ -356,7 +358,6 @@ void Compositor::startupWithWorkspace()
|
|||
}
|
||||
}
|
||||
|
||||
m_state = State::On;
|
||||
Q_EMIT compositingToggled(true);
|
||||
|
||||
if (m_releaseSelectionTimer.isActive()) {
|
||||
|
|
Loading…
Reference in a new issue