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:
parent
6a25ea49ee
commit
6a969aa16e
1 changed files with 4 additions and 2 deletions
|
@ -211,8 +211,10 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
|
||||||
{
|
{
|
||||||
double xScale = data.xScale;
|
double xScale = data.xScale;
|
||||||
double yScale = data.yScale;
|
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++ )
|
for( int screen = 0; screen < effects->numScreens(); screen++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue