From ab07ba1c706998f92396744596d85712de22b405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 11 Dec 2003 09:48:37 +0000 Subject: [PATCH] Don't try to restack a window below itself. CCMAIL:70004-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=272436 --- layers.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layers.cpp b/layers.cpp index 87be47914c..88f6e12dc2 100644 --- a/layers.cpp +++ b/layers.cpp @@ -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; } }