From 9807acc9d8b99c4378c45aabae46849c61c7734e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 15 Jan 2004 17:48:56 +0000 Subject: [PATCH] Bah, when searching stacking order in order to put a window below the bottom-most window of the active application, search from bottom and not from top. Fixes e.g. Shift+MMB on links in Konqy. svn path=/trunk/kdebase/kwin/; revision=279960 --- layers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layers.cpp b/layers.cpp index 213c70860a..ebb4870bd5 100644 --- a/layers.cpp +++ b/layers.cpp @@ -387,10 +387,10 @@ void Workspace::restackClientUnderActive( Client* c ) // put in the stacking order below _all_ windows belonging to the active application assert( unconstrained_stacking_order.contains( active_client )); - for( ClientList::Iterator it = unconstrained_stacking_order.fromLast(); + for( ClientList::Iterator it = unconstrained_stacking_order.begin(); it != unconstrained_stacking_order.end(); - --it ) - { + ++it ) + { // TODO ignore topmenus? if( Client::belongToSameApplication( active_client, *it )) { if( *it != c )