From 097e307b4042370d9d68b74fd71a7b963fe8db89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 16 Dec 2003 12:25:42 +0000 Subject: [PATCH] Oops, support window has to be always first in XRestackWindow(), everything else is restacked relatively to it. svn path=/trunk/kdebase/kwin/; revision=273327 --- layers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers.cpp b/layers.cpp index 88f6e12dc2..ca815f5e9a 100644 --- a/layers.cpp +++ b/layers.cpp @@ -135,7 +135,7 @@ void Workspace::propagateClients( bool propagate_new_clients ) // it ensures that no client will be ever shown above override-redirect // windows (e.g. popups). new_stack[ pos++ ] = supportWindow->winId(); - int topmenu_space_pos = 0; + int topmenu_space_pos = 1; // not 0, that's supportWindow !!! for( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it ) @@ -155,6 +155,7 @@ void Workspace::propagateClients( bool propagate_new_clients ) } // TODO isn't it too inefficient to restart always all clients? // TODO don't restack not visible windows? + assert( new_stack[ 0 ] = supportWindow->winId()); XRestackWindows(qt_xdisplay(), new_stack, pos); delete [] new_stack;