From 6a969aa16efde680a871f2a505b3c522dc72af87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 5 Jan 2009 14:18:58 +0000 Subject: [PATCH] Don't change brightness of windows on all desktops as this causes flickering. BUG: 170002 svn path=/trunk/KDE/kdebase/workspace/; revision=906087 --- effects/desktopgrid.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/effects/desktopgrid.cpp b/effects/desktopgrid.cpp index b038b6ee01..25b6a57ba9 100644 --- a/effects/desktopgrid.cpp +++ b/effects/desktopgrid.cpp @@ -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++ ) {