Commit 405a0360 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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

(cherry picked from commit 1694b24f)
parent 575cc46a
......@@ -407,9 +407,6 @@ void Scene::addToplevel(Toplevel *c)
m_windows[ c ] = w;
connect(c, SIGNAL(windowClosed(KWin::Toplevel*,KWin::Deleted*)), SLOT(windowClosed(KWin::Toplevel*,KWin::Deleted*)));
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();
......@@ -737,6 +734,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()
......
Supports Markdown
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