diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-04 11:44:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-04 11:44:48 +0000 |
| commit | cb5eb0d560759cebce3279cb28d942166e0e9a7a (patch) | |
| tree | ece4d14daa698dda16efafe222534d656dbd0e1b /scripts/stackedcycle.py | |
| parent | 76525992cdf5cf7a5db8b98dd21c1df375d72fc5 (diff) | |
store pointers instead of window id's. this lets us use them directly instead of having to look them all up all the time. this is possible now because we watch for new/close window events.
Diffstat (limited to 'scripts/stackedcycle.py')
| -rw-r--r-- | scripts/stackedcycle.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 9c60c1b9..49ac6848 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -96,11 +96,9 @@ class _cycledata: # 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: - if c.iconic(): iconic_clients.append(c) - else: self.clients.append(c) + for c in focus._clients: + if c.iconic(): iconic_clients.append(c) + else: self.clients.append(c) self.clients.extend(iconic_clients) font = self.style.labelFont() |
