Don't desaturate the logout window if blur is not supported.
svn path=/trunk/KDE/kdebase/workspace/; revision=926535
This commit is contained in:
parent
792c7439f8
commit
ccd068897c
1 changed files with 8 additions and 5 deletions
|
@ -102,13 +102,16 @@ void LogoutEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Windo
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
if( effects->saturationSupported() )
|
if( w != logoutWindow )
|
||||||
{
|
{
|
||||||
data.saturation *= ( 1.0 - progress * 0.8 );
|
if( effects->saturationSupported() )
|
||||||
data.brightness *= ( 1.0 - progress * 0.3 );
|
{
|
||||||
|
data.saturation *= ( 1.0 - progress * 0.8 );
|
||||||
|
data.brightness *= ( 1.0 - progress * 0.3 );
|
||||||
|
}
|
||||||
|
else // When saturation isn't supported then reduce brightness a bit more
|
||||||
|
data.brightness *= ( 1.0 - progress * 0.6 );
|
||||||
}
|
}
|
||||||
else // When saturation isn't supported then reduce brightness a bit more
|
|
||||||
data.brightness *= ( 1.0 - progress * 0.6 );
|
|
||||||
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue