From cfda9e240df1306b039fe7b7aff3183aa82699d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 27 Dec 2012 21:57:40 +0100 Subject: [PATCH] collect shadows of existing clients when toggling the compositor REVIEW: 107965 --- composite.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composite.cpp b/composite.cpp index a8b0c9510f..415d80e407 100644 --- a/composite.cpp +++ b/composite.cpp @@ -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);