setTabBoxWindow causes the ItemInfo to be regenerated, so we have to break the loop after finding a window.

Makes more sense anyway as we do not have to go through the hash to find the item we already found.
BUG: 222120

svn path=/trunk/KDE/kdebase/workspace/; revision=1080616
This commit is contained in:
Martin Gräßlin 2010-01-26 15:26:48 +00:00
parent 2b6628b7f6
commit 17ea2bf146

View file

@ -257,7 +257,10 @@ void BoxSwitchEffect::windowInputMouseEvent( Window w, QEvent* e )
for( i = windows.constBegin(); i != windows.constEnd(); ++i )
{
if( i.value()->clickable.contains( pos ))
{
effects->setTabBoxWindow( i.key() );
break;
}
}
// special handling for second half of window in case of animation and even number of windows
if( mAnimateSwitch && ( windows.size() % 2 == 0 ) )