]> Dogcows Code - chaz/openbox/commitdiff
keep iconic windows at the bottom of the cycling list always
authorDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 10:32:49 +0000 (10:32 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 10:32:49 +0000 (10:32 +0000)
scripts/stackedcycle.py

index a632b3183f6ddb7d547160e0515573c9b0f53828..757154a61470396c63db578b2039243b91d2e293 100644 (file)
@@ -93,11 +93,15 @@ class cycledata:
         oldpos = self.menupos
         self.menupos = -1
 
-        # get the list of clients
+        # get the list of clients, keeping iconic windows at the bottom
         self.clients = []
+        iconic_clients = []
         for i in focus._clients:
             c = ob.openbox.findClient(i)
-            if c: self.clients.append(c)
+            if c:
+                if c.iconic(): iconic_clients.append(c)
+                else: self.clients.append(c)
+        self.clients.extend(iconic_clients)
 
         font = self.style.labelFont()
         longest = 0
This page took 0.02311 seconds and 4 git commands to generate.