collect shadows of existing clients when toggling the compositor

REVIEW: 107965
icc-effect-5.14.5
Thomas Lübking 2012-12-27 21:57:40 +01:00
parent c6d411d939
commit cfda9e240d
1 changed files with 6 additions and 2 deletions

View File

@ -222,12 +222,16 @@ void Compositor::slotCompositingOptionsInitialized()
new EffectsHandlerImpl(this, m_scene); // sets also the 'effects' pointer
connect(effects, SIGNAL(screenGeometryChanged(QSize)), SLOT(addRepaintFull()));
addRepaintFull();
foreach (Client * c, Workspace::self()->clientList())
foreach (Client * c, Workspace::self()->clientList()) {
c->setupCompositing();
c->getShadow();
}
foreach (Client * c, Workspace::self()->desktopList())
c->setupCompositing();
foreach (Unmanaged * c, Workspace::self()->unmanagedList())
foreach (Unmanaged * c, Workspace::self()->unmanagedList()) {
c->setupCompositing();
c->getShadow();
}
emit compositingToggled(true);