From 2ed7ffbac408af569add0f2e141743c226f9c070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 23 Apr 2008 20:10:35 +0000 Subject: [PATCH] Off-by-one errors in stacking unmanaged windows. svn path=/trunk/KDE/kdebase/workspace/; revision=800276 --- layers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers.cpp b/layers.cpp index 5286a5e50c..c0fa590a34 100644 --- a/layers.cpp +++ b/layers.cpp @@ -736,7 +736,7 @@ void Workspace::restackUnmanaged( Unmanaged* c, Window above ) if( unmanaged_stacking_order.at( i )->window() == above ) { if( i + 1 < unmanaged_stacking_order.size() - && unmanaged_stacking_order.at( i ) == c ) + && unmanaged_stacking_order.at( i + 1 ) == c ) { // it is already there, do nothing return; @@ -744,7 +744,7 @@ void Workspace::restackUnmanaged( Unmanaged* c, Window above ) unmanaged_stacking_order.removeAll( c ); if( was_below ) --i; - unmanaged_stacking_order.insert( i, c ); + unmanaged_stacking_order.insert( i + 1, c ); addRepaint( c->geometry()); return; }