Don't desaturate the logout window if blur is not supported.

svn path=/trunk/KDE/kdebase/workspace/; revision=926535
icc-effect-5.14.5
Lucas Murray 2009-02-15 16:12:43 +00:00
parent 792c7439f8
commit ccd068897c
1 changed files with 8 additions and 5 deletions

View File

@ -102,13 +102,16 @@ void LogoutEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Windo
else
{
#endif
if( effects->saturationSupported() )
if( w != logoutWindow )
{
data.saturation *= ( 1.0 - progress * 0.8 );
data.brightness *= ( 1.0 - progress * 0.3 );
if( effects->saturationSupported() )
{
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
}
#endif