Don't dim unmanaged windows.

BUG: 183046

svn path=/trunk/KDE/kdebase/workspace/; revision=936926
This commit is contained in:
Martin Gräßlin 2009-03-08 16:53:31 +00:00
parent 3c449d81cc
commit 371c6804f4

View file

@ -80,8 +80,7 @@ void DimScreenEffect::postPaintScreen()
void DimScreenEffect::paintWindow( EffectWindow *w, int mask, QRegion region, WindowPaintData &data )
{
if( mActivated && ( w != window ) &&
!( w->isComboBox() || w->isDropdownMenu() || w->isTooltip() ) )
if( mActivated && ( w != window ) && w->isManaged() )
{
data.brightness *= (1.0 - 0.33 * timeline.value() );
data.saturation *= (1.0 - 0.33 * timeline.value() );