From 7597ce484eeb3e73b8135ce78b31f3d430a515f4 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Fri, 17 Oct 2008 10:30:58 +0000 Subject: [PATCH] Prevent XRender mode from crashing when shadows are enabled. svn path=/trunk/KDE/kdebase/workspace/; revision=872475 --- effects/shadow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 7be6a40624..0dd89bb2a7 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -265,6 +265,8 @@ void ShadowEffect::drawWindow( EffectWindow* w, int mask, QRegion region, Window void ShadowEffect::buildQuads( EffectWindow* w, WindowQuadList& quadList ) { + if( effects->compositingType() == XRenderCompositing ) + return; // TODO: Disable quad-based shadows in XRender mode for the moment if( effects->hasDecorationShadows() ) { // TODO: shadowQuads() is allowed to return different quads for