From 8c09fbc62ac16159d3e7ca20c4dd9ce49fd5381a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 18 Nov 2008 08:20:37 +0000 Subject: [PATCH] Disable blur effect when there is an active fullscreen effect. This makes cube & co. work if blur is enabled. It's a hack and the real reason why the problem occurs should be searched for. (I totally forgot to commit this patch) BUG: 167928 svn path=/trunk/KDE/kdebase/workspace/; revision=885931 --- effects/blur.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/effects/blur.cpp b/effects/blur.cpp index 95244cbfde..e880c629c0 100644 --- a/effects/blur.cpp +++ b/effects/blur.cpp @@ -184,7 +184,8 @@ void BlurEffect::paintScreen( int mask, QRegion region, ScreenPaintData& data ) // way of knowing here whether there will be any translucent windows or // not. If we'd know that there's no translucent windows then we could // render straight onto screen, saving some time. - if( mValid /*&& mTransparentWindows*/ ) + // HACK disable blur when there is a fullscreen effects. Needed for e.g. cube to work + if( mValid && !effects->activeFullScreenEffect() /*&& mTransparentWindows*/ ) { // rendering everything onto render target effects->pushRenderTarget(mSceneTarget); @@ -241,7 +242,8 @@ void BlurEffect::paintScreen( int mask, QRegion region, ScreenPaintData& data ) void BlurEffect::drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ) { - if( mValid /*&& mTransparentWindows*/ ) + // HACK disable blur when there is a fullscreen effects. Needed for e.g. cube to work + if( mValid && !effects->activeFullScreenEffect() /*&& mTransparentWindows*/ ) { if( mask & PAINT_WINDOW_TRANSLUCENT && (data.opacity != 1.0 || data.contents_opacity != 1.0 || data.decoration_opacity != 1.0 ))