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
This commit is contained in:
Lucas Murray 2008-12-15 08:05:24 +00:00
parent d49cc078bb
commit c5256e6b13

View file

@ -38,6 +38,12 @@ void FadeEffect::reconfigure( ReconfigureFlags )
fadeInTime = animationTime( conf, "FadeInTime", 150 ); fadeInTime = animationTime( conf, "FadeInTime", 150 );
fadeOutTime = animationTime( conf, "FadeOutTime", 150 ); fadeOutTime = animationTime( conf, "FadeOutTime", 150 );
fadeWindows = conf.readEntry( "FadeWindows", true ); 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 ) void FadeEffect::prePaintScreen( ScreenPrePaintData& data, int time )