From 134314a5dc1b5bb889940d2de5853b64a2b7b49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 25 Oct 2010 00:45:41 +0000 Subject: [PATCH] Don't rearrange windows when close view is added/deleted. Caused funny movements in present windows alt+tab mode. svn path=/trunk/KDE/kdebase/workspace/; revision=1189401 --- effects/presentwindows/presentwindows.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index b7c2b9502e..4494f9836c 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -420,9 +420,12 @@ void PresentWindowsEffect::windowClosed( EffectWindow *w ) w->refWindow(); if( m_highlightedWindow == w ) setHighlightedWindow( findFirstWindow() ); - rearrangeWindows(); if( m_closeWindow == w ) + { m_closeWindow = 0; + return; // don't rearrange + } + rearrangeWindows(); } void PresentWindowsEffect::windowDeleted( EffectWindow *w ) @@ -1732,6 +1735,8 @@ bool PresentWindowsEffect::isSelectableWindow( EffectWindow *w ) return false; if( w->isSkipSwitcher() ) return false; + if( w == effects->findWindow( m_closeView->winId() ) ) + return false; switch( m_mode ) { case ModeAllDesktops: