Don't try to restack a window below itself.

CCMAIL:70004-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=272436
This commit is contained in:
Luboš Luňák 2003-12-11 09:48:37 +00:00
parent 338593f621
commit ab07ba1c70

View file

@ -392,8 +392,11 @@ void Workspace::restackClientUnderActive( Client* c )
{
if( Client::belongToSameApplication( active_client, *it ))
{
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.insert( it, c );
if( *it != c )
{
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.insert( it, c );
}
break;
}
}