no non clients in _NET_CLIENT_LIST_STACKING

BUG: 307125
FIXED-IN: 4.9.2
REVIEW: 106526
This commit is contained in:
Thomas Lübking 2012-09-25 22:46:03 +02:00
parent db48a26469
commit 1c5a1599c8

View file

@ -116,7 +116,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
@ -203,8 +203,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;