Commit 1694b24f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Move some connects from Scene::addToplevel() to Window constructor

parent 47ea0c98
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment