diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-17 11:48:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-17 11:48:35 +0000 |
| commit | 5fc7db1c16783530a95382e61cfcb46d2480142c (patch) | |
| tree | 2fa86ac5e28018e39dcc7dbd6074a1581bd5c4fc /scripts/cycle.py | |
| parent | 31d41a7aa60b06caea77d2c20af48e5c54eed600 (diff) | |
allow cycling without a modifier in the binding
Diffstat (limited to 'scripts/cycle.py')
| -rw-r--r-- | scripts/cycle.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/cycle.py b/scripts/cycle.py index fbae810b..3a2ff57b 100644 --- a/scripts/cycle.py +++ b/scripts/cycle.py @@ -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) |
