Don't try to restack a window below itself.

CCMAIL:70004-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=272436
icc-effect-5.14.5
Luboš Luňák 2003-12-11 09:48:37 +00:00
parent 338593f621
commit ab07ba1c70
1 changed files with 5 additions and 2 deletions

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