]> Dogcows Code - chaz/openbox/commitdiff
dont add sticky windows to the stacking list more than once
authorDana Jansens <danakj@orodu.net>
Sat, 24 Aug 2002 22:22:52 +0000 (22:22 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 24 Aug 2002 22:22:52 +0000 (22:22 +0000)
src/Workspace.cc

index b1a25b1a5401495e8326a8391c9d0f07d495422f..4a76bc8ad41677b9d7372bdc1d330ca4c0fef5ac 100644 (file)
@@ -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);
 }
 
This page took 0.023065 seconds and 4 git commands to generate.