Don't change brightness of windows on all desktops as this causes flickering.

BUG: 170002

svn path=/trunk/KDE/kdebase/workspace/; revision=906087
This commit is contained in:
Martin Gräßlin 2009-01-05 14:18:58 +00:00
parent 6a25ea49ee
commit 6a969aa16e

View file

@ -211,8 +211,10 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
{
double xScale = data.xScale;
double yScale = data.yScale;
data.brightness *= 1.0 - ( 0.3 * ( 1.0 - hoverTimeline[paintingDesktop - 1].value() ));
// Don't change brightness of windows on all desktops as this causes flickering
if( !w->isOnAllDesktops() || w->isDesktop() )
data.brightness *= 1.0 - ( 0.3 * ( 1.0 - hoverTimeline[paintingDesktop - 1].value() ));
for( int screen = 0; screen < effects->numScreens(); screen++ )
{