From c5256e6b13c635e5a44e0b979e711a305fbd00bb Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Mon, 15 Dec 2008 08:05:24 +0000 Subject: [PATCH] If compositing is activated when windows are already open add them to the fade effect's window list. Fixes windows not fading back in after resetting desktop effects. BUG: 173262 svn path=/trunk/KDE/kdebase/workspace/; revision=897048 --- effects/fade.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/fade.cpp b/effects/fade.cpp index 370b3f71e0..e376fd5172 100644 --- a/effects/fade.cpp +++ b/effects/fade.cpp @@ -38,6 +38,12 @@ void FadeEffect::reconfigure( ReconfigureFlags ) fadeInTime = animationTime( conf, "FadeInTime", 150 ); fadeOutTime = animationTime( conf, "FadeOutTime", 150 ); fadeWindows = conf.readEntry( "FadeWindows", true ); + + // Add all existing windows to the window list + // TODO: Enabling desktop effects should trigger windowAdded() on all windows + windows.clear(); + foreach( EffectWindow *w, effects->stackingOrder() ) + windows[ w ].opacity = 1.0; } void FadeEffect::prePaintScreen( ScreenPrePaintData& data, int time )