From 792c7439f8c8d9b2643b84448f38c67691b6a1f9 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 15 Feb 2009 16:04:29 +0000 Subject: [PATCH] Fix OpenGL-less compile and make the effect actually display something to the user if blur is not supported (Screen appears to freeze). svn path=/trunk/KDE/kdebase/workspace/; revision=926527 --- effects/logout/logout.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/effects/logout/logout.cpp b/effects/logout/logout.cpp index ad2becf462..3a90dd894b 100644 --- a/effects/logout/logout.cpp +++ b/effects/logout/logout.cpp @@ -93,13 +93,15 @@ void LogoutEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Windo { if( progress > 0.0 ) { - if( w == logoutWindow ) +#ifdef KWIN_HAVE_OPENGL_COMPOSITING + if( blurSupported && w == logoutWindow ) { windowOpacity = data.opacity; data.opacity = 0.0; // Cheat, we need the opacity for later but don't want to blur it } else { +#endif if( effects->saturationSupported() ) { data.saturation *= ( 1.0 - progress * 0.8 ); @@ -107,7 +109,9 @@ void LogoutEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Windo } 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 } effects->paintWindow( w, mask, region, data ); }