From a6e85999176d712d1018ab84fc9206c285db320d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 25 Sep 2012 22:46:03 +0200 Subject: [PATCH] no non clients in _NET_CLIENT_LIST_STACKING BUG: 307125 FIXED-IN: 4.9.2 REVIEW: 106526 --- layers.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layers.cpp b/layers.cpp index 0c6b0f72a7..706cb4bf41 100644 --- a/layers.cpp +++ b/layers.cpp @@ -117,7 +117,7 @@ void Workspace::updateStackingOrder(bool propagate_new_clients) return; } ToplevelList new_stacking_order = constrainedStackingOrder(); - bool changed = (new_stacking_order != stacking_order || force_restacking); + bool changed = (force_restacking || new_stacking_order != stacking_order); force_restacking = false; stacking_order = new_stacking_order; #if 0 @@ -207,8 +207,10 @@ void Workspace::propagateClients(bool propagate_new_clients) cl = new Window[ stacking_order.count()]; pos = 0; - for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) - cl[pos++] = (*it)->window(); + for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) { + if ((*it)->isClient()) + cl[pos++] = (*it)->window(); + } rootInfo->setClientListStacking(cl, pos); delete [] cl;