From ccd068897c467e75de30f1b05038c97a6a2ff1ad Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 15 Feb 2009 16:12:43 +0000 Subject: [PATCH] Don't desaturate the logout window if blur is not supported. svn path=/trunk/KDE/kdebase/workspace/; revision=926535 --- effects/logout/logout.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/effects/logout/logout.cpp b/effects/logout/logout.cpp index 3a90dd894b..0ef390d93a 100644 --- a/effects/logout/logout.cpp +++ b/effects/logout/logout.cpp @@ -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