From b5da07a8222dd591734d5c3f363e9ec5eb177858 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 4 Oct 2009 19:24:09 +0000 Subject: [PATCH] dont trigger the effect if a window is closed and the focus falls to a window other than the topwindow BUG: 196900 svn path=/trunk/KDE/kdebase/workspace/; revision=1031353 --- effects/slideback/slideback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/slideback/slideback.cpp b/effects/slideback/slideback.cpp index f299e1a007..85aa9e28d0 100644 --- a/effects/slideback/slideback.cpp +++ b/effects/slideback/slideback.cpp @@ -49,7 +49,7 @@ void SlideBackEffect::windowActivated( EffectWindow* w ) return; } - if( !isWindowUsable( w ) || !stackingOrderChanged() ) // Focus changed but stacking still the same + if( !isWindowUsable( w ) || !stackingOrderChanged() || !isWindowOnTop( w ) ) // Focus changed but stacking still the same { updateStackingOrder(); return;