[scene] Re-order some connects in Scene::addToplevel()

Re-order some connects to keep them spatially close.

Differential Revision: https://phabricator.kde.org/D29131
This commit is contained in:
Vlad Zahorodnii 2020-04-23 12:09:07 +03:00
parent 774e43c51d
commit 63014d2cb1

View file

@ -423,11 +423,13 @@ void Scene::addToplevel(Toplevel *c)
connect(c->surface(), &KWaylandServer::SurfaceInterface::scaleChanged, this, discardQuads);
}
connect(c, &Toplevel::screenScaleChanged, this, discardQuads);
connect(c, &Toplevel::shadowChanged, this, discardQuads);
c->effectWindow()->setSceneWindow(w);
c->updateShadow();
w->updateShadow(c->shadow());
connect(c, &Toplevel::shadowChanged, this, discardQuads);
}
void Scene::removeToplevel(Toplevel *toplevel)