From ae70b17c79dfee94e2464fbb1facb4c6b4c70a91 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 10 Jun 2021 08:54:39 +0300 Subject: [PATCH] Set compositor On status before setupCompositing() This is needed to ensure that Compositor::compositing() returns true when Toplevel::setupCompositing() is called. --- src/composite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composite.cpp b/src/composite.cpp index 471707bf41..0d120f6b57 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -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()) {