From 03c84e77898d0edaf61117fa6706a0d51baa850c Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 18 May 2009 10:22:51 +0000 Subject: [PATCH] Remove clipped area immediately after painting. Should fix bug 193094. CCBUG: 193094 svn path=/trunk/KDE/kdebase/workspace/; revision=969412 --- effects/slideback/slideback.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/effects/slideback/slideback.cpp b/effects/slideback/slideback.cpp index c6eec3aae3..8ead3df909 100644 --- a/effects/slideback/slideback.cpp +++ b/effects/slideback/slideback.cpp @@ -192,15 +192,6 @@ void SlideBackEffect::prePaintWindow( EffectWindow *w, WindowPrePaintData &data, void SlideBackEffect::paintWindow( EffectWindow *w, int mask, QRegion region, WindowPaintData &data ) { - if( !clippedRegions.isEmpty() ) - { - foreach( const QRegion ®ion, clippedRegions ) - { - PaintClipper::pop( region ); - } - clippedRegions.clear(); - } - if( stackingOrderChanged() && ( w == newTopWindow() ) ) { /* This can happen because of two reasons: @@ -229,6 +220,14 @@ void SlideBackEffect::paintWindow( EffectWindow *w, int mask, QRegion region, Wi motionManager.apply( w, data ); } effects->paintWindow( w, mask, region, data ); + if( !clippedRegions.isEmpty() ) + { + foreach( const QRegion ®ion, clippedRegions ) + { + PaintClipper::pop( region ); + } + clippedRegions.clear(); + } } void SlideBackEffect::postPaintWindow( EffectWindow* w )