Make Scene responsible for handling Workspace::deletedRemoved()
This commit is contained in:
parent
1fe8a18844
commit
9fca6209b7
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue