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
This commit is contained in:
Michael Zanetti 2009-10-04 19:24:09 +00:00
parent e03269be68
commit b5da07a822

View file

@ -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;