Make sure the unconstrained_stacking_order list contains all clients.

First part for #68553.

svn path=/trunk/kdebase/kwin/; revision=268141
This commit is contained in:
Luboš Luňák 2003-11-19 10:42:23 +00:00
parent 95cc10f6ca
commit 290d7207e6

View file

@ -388,10 +388,12 @@ void Workspace::restackClientUnderActive( Client* c )
{ {
if( Client::belongToSameApplication( active_client, *it )) if( Client::belongToSameApplication( active_client, *it ))
{ {
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.insert( it, c ); unconstrained_stacking_order.insert( it, c );
break; break;
} }
} }
assert( unconstrained_stacking_order.contains( c ));
if( c->wantsTabFocus() && focus_chain.contains( active_client )) if( c->wantsTabFocus() && focus_chain.contains( active_client ))
{ {
// also put in focus_chain after all windows belonging to the active application // also put in focus_chain after all windows belonging to the active application