Move some connects from Scene::addToplevel() to Window constructor
This commit is contained in:
parent
47ea0c98b1
commit
1694b24fa6
1 changed files with 4 additions and 3 deletions
|
@ -422,9 +422,6 @@ void Scene::addToplevel(Toplevel *c)
|
|||
m_windows[ c ] = w;
|
||||
|
||||
connect(c, &Toplevel::windowClosed, this, &Scene::windowClosed);
|
||||
connect(c, &Toplevel::screenScaleChanged, w, &Window::discardQuads);
|
||||
connect(c, &Toplevel::shadowChanged, w, &Window::discardQuads);
|
||||
connect(c, &Toplevel::geometryShapeChanged, w, &Window::discardShape);
|
||||
|
||||
c->effectWindow()->setSceneWindow(w);
|
||||
c->updateShadow();
|
||||
|
@ -764,6 +761,10 @@ Scene::Window::Window(Toplevel *client, QObject *parent)
|
|||
connect(surface, &KWaylandServer::SurfaceInterface::surfaceToBufferMatrixChanged,
|
||||
this, &Window::discardQuads);
|
||||
}
|
||||
|
||||
connect(toplevel, &Toplevel::screenScaleChanged, this, &Window::discardQuads);
|
||||
connect(toplevel, &Toplevel::shadowChanged, this, &Window::discardQuads);
|
||||
connect(toplevel, &Toplevel::geometryShapeChanged, this, &Window::discardShape);
|
||||
}
|
||||
|
||||
Scene::Window::~Window()
|
||||
|
|
Loading…
Reference in a new issue