From 445f021b06455e88355a511b2339b65536c808bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 20 Feb 2009 13:48:23 +0000 Subject: [PATCH] Fix commit which broke shadows. svn path=/trunk/KDE/kdebase/workspace/; revision=928975 --- effects/cube/cube.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index b8e3173f3b..505398216d 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -1291,6 +1291,8 @@ void CubeEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int { data.quads = data.quads.splitAtY( rect.height() - w->y() ); } + if( useZOrdering && !w->isDesktop() && !w->isDock() ) + data.setTransformed(); w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DESKTOP ); } else @@ -1576,7 +1578,7 @@ void CubeEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowP } } } - effects->paintWindow( w, PAINT_WINDOW_TRANSFORMED, region, data ); + effects->paintWindow( w, mask, region, data ); if( activated && cube_painting ) { glPopMatrix();