X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.cc;h=4a76bc8ad41677b9d7372bdc1d330ca4c0fef5ac;hb=483b8496d615dc1ed6934fb685b904ad6923b8a1;hp=b943bc3ae21efbc7450657ae24bc962a0cf3ea95;hpb=81cdff06930cb38f2138d7b41187d1e516b9e379;p=chaz%2Fopenbox diff --git a/src/Workspace.cc b/src/Workspace.cc index b943bc3a..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)->isNormal()) + // don't add desktop wnidows, or sticky windows more than once + if (! ( (*it)->isDesktop() || + ((*it)->isStuck() && id != screen->getCurrentWorkspaceID()))) stack_order.push_back(*it); }