diff --git a/src/composite.cpp b/src/composite.cpp index 0a1c319219..d88c47b358 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -373,7 +373,6 @@ void Compositor::startupWithWorkspace() // Sets also the 'effects' pointer. kwinApp()->platform()->createEffectsHandler(this, m_scene); - connect(Workspace::self(), &Workspace::deletedRemoved, m_scene, &Scene::removeToplevel); for (X11Client *c : Workspace::self()->clientList()) { c->setupCompositing(); diff --git a/src/scene.cpp b/src/scene.cpp index 63df70f7b2..e0712daacc 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -98,6 +98,8 @@ void Scene::initialize() { connect(kwinApp()->platform(), &Platform::outputDisabled, this, &Scene::removeRepaints); + connect(workspace(), &Workspace::deletedRemoved, this, &Scene::removeToplevel); + connect(workspace(), &Workspace::geometryChanged, this, &Scene::addRepaintFull); connect(workspace(), &Workspace::currentActivityChanged, this, &Scene::addRepaintFull); connect(workspace(), &Workspace::currentDesktopChanged, this, &Scene::addRepaintFull);