Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Line(s) | 401 | if (c->surface()) { | |||
---|---|---|---|---|---|
402 | connect(c->surface(), &KWayland::Server::SurfaceInterface::scaleChanged, this, std::bind(&Scene::windowGeometryShapeChanged, this, c)); | 402 | connect(c->surface(), &KWayland::Server::SurfaceInterface::scaleChanged, this, std::bind(&Scene::windowGeometryShapeChanged, this, c)); | ||
403 | } | 403 | } | ||
404 | connect(c, &Toplevel::screenScaleChanged, this, | 404 | connect(c, &Toplevel::screenScaleChanged, this, | ||
405 | [this, c] { | 405 | [this, c] { | ||
406 | windowGeometryShapeChanged(c); | 406 | windowGeometryShapeChanged(c); | ||
407 | } | 407 | } | ||
408 | ); | 408 | ); | ||
409 | c->effectWindow()->setSceneWindow(w); | 409 | c->effectWindow()->setSceneWindow(w); | ||
410 | c->getShadow(); | 410 | c->updateShadow(); | ||
411 | w->updateShadow(c->shadow()); | 411 | w->updateShadow(c->shadow()); | ||
412 | connect(c, &Toplevel::shadowChanged, this, | 412 | connect(c, &Toplevel::shadowChanged, this, | ||
413 | [w] { | 413 | [w] { | ||
414 | w->invalidateQuadsCache(); | 414 | w->invalidateQuadsCache(); | ||
415 | } | 415 | } | ||
416 | ); | 416 | ); | ||
417 | } | 417 | } | ||
418 | 418 | | |||
▲ Show 20 Lines • Show All 737 Lines • Show Last 20 Lines |