From cb5eb0d560759cebce3279cb28d942166e0e9a7a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 11:44:48 +0000 Subject: 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. --- scripts/stackedcycle.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts/stackedcycle.py') 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() -- cgit v1.2.3