From 4dee88ba652c61a6aaae597c081b2b9c0485edba Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 24 May 2009 14:26:00 +0000 Subject: [PATCH] fixed bug 193442. Thanks for the great test case. BUG: 193442 svn path=/trunk/KDE/kdebase/workspace/; revision=972300 --- effects/slideback/slideback.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/effects/slideback/slideback.cpp b/effects/slideback/slideback.cpp index 26675b9098..76a6b10866 100644 --- a/effects/slideback/slideback.cpp +++ b/effects/slideback/slideback.cpp @@ -193,7 +193,7 @@ void SlideBackEffect::prePaintWindow( EffectWindow *w, WindowPrePaintData &data, void SlideBackEffect::paintWindow( EffectWindow *w, int mask, QRegion region, WindowPaintData &data ) { - if( stackingOrderChanged() && ( w == newTopWindow() ) ) + if( stackingOrderChanged() && ( w == newTopWindow() ) && !disabled ) { /* This can happen because of two reasons: - a window has received the focus earlier without beeing raised and is raised now. -> call windowActivated() now @@ -209,10 +209,7 @@ void SlideBackEffect::paintWindow( EffectWindow *w, int mask, QRegion region, Wi } } // Finally call windowActivated in case a already active window is raised. - if( !disabled ) - { - windowActivated( w ); - } + windowActivated( w ); } if( motionManager.isManaging( w ) ) {