Commit 6a969aa1 authored by Martin Flöser's avatar Martin Flöser
Browse files

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

BUG: 170002

svn path=/trunk/KDE/kdebase/workspace/; revision=906087
parent 6a25ea49
......@@ -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++ )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment