Somehow effects->activeWindow() seems to return NULL during setup, so don't check our saved variable but the current active window.

BUG: 200232

svn path=/trunk/KDE/kdebase/workspace/; revision=1059477
This commit is contained in:
Martin Gräßlin 2009-12-06 18:14:15 +00:00
parent 612972eea0
commit 30f0575de0

View file

@ -80,7 +80,7 @@ void DimInactiveEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
bool DimInactiveEffect::dimWindow( const EffectWindow* w ) const bool DimInactiveEffect::dimWindow( const EffectWindow* w ) const
{ {
if( active == w ) if( effects->activeWindow() == w )
return false; // never dim active window return false; // never dim active window
if( active && dim_by_group && active->group() == w->group()) if( active && dim_by_group && active->group() == w->group())
return false; // don't dim in active group if configured so return false; // don't dim in active group if configured so