From 2c1ce30804957b4bb683109e009dc896e6ecc09c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 24 Aug 2002 22:22:52 +0000 Subject: [PATCH] dont add sticky windows to the stacking list more than once --- src/Workspace.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index b1a25b1a..4a76bc8a 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -463,7 +463,9 @@ void Workspace::appendStackOrder(BlackboxWindowList &stack_order) const { BlackboxWindowList::const_reverse_iterator it = stackingList.rbegin(); const BlackboxWindowList::const_reverse_iterator end = stackingList.rend(); for (; it != end; ++it) - if (! (*it)->isDesktop()) + // don't add desktop wnidows, or sticky windows more than once + if (! ( (*it)->isDesktop() || + ((*it)->isStuck() && id != screen->getCurrentWorkspaceID()))) stack_order.push_back(*it); } -- 2.45.2