]> Dogcows Code - chaz/openbox/commitdiff
allow cycling without a modifier in the binding
authorDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 11:48:35 +0000 (11:48 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 11:48:35 +0000 (11:48 +0000)
scripts/cycle.py

index fbae810b66f66dc4d38fbecdc1e583d51d168f7b..3a2ff57bfba52a0c169157ef1f7e0919cc7caec1 100644 (file)
@@ -230,16 +230,10 @@ class _Cycle:
 
     def next(self, data):
         """Focus the next window."""
-        if not data.state:
-            raise RuntimeError("next must be bound to a key" +
-                               "combination with at least one modifier")
         self.cycle(data, 1)
         
     def previous(self, data):
         """Focus the previous window."""
-        if not data.state:
-            raise RuntimeError("previous must be bound to a key" +
-                               "combination with at least one modifier")
         self.cycle(data, 0)
 
 #---------------------- Window Cycling --------------------
@@ -413,8 +407,7 @@ class _CycleWindowsLinear(_CycleWindows):
     def populateItems(self):
         # get the list of clients, keeping iconic windows at the bottom
         iconic_clients = []
-        for i in range(self.screen.clientCount()):
-            c = self.screen.client(i)
+        for c in self.screen.clients:
             if self.shouldAdd(c):
                 self.items.append(c)
 
This page took 0.023421 seconds and 4 git commands to generate.