all repos — openbox @ 2c1ce30804957b4bb683109e009dc896e6ecc09c

openbox fork - make it a bit more like ryudo

dont add sticky windows to the stacking list more than once
Dana Jansens danakj@orodu.net
commit

2c1ce30804957b4bb683109e009dc896e6ecc09c

parent

23e92e110e467796437d981c0c5bc129c0e20b8e

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/Workspace.ccsrc/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); }