Make Scene responsible for handling Workspace::deletedRemoved()

This commit is contained in:
Vlad Zahorodnii 2021-11-09 13:20:39 +02:00
parent 1fe8a18844
commit 9fca6209b7
2 changed files with 2 additions and 1 deletions

View file

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

View file

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