X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fstackedcycle.py;h=bfeaf31d918333ad601282b606c035f3881c26c8;hb=3ca451fc00eccb2ded41cc4b02e51fd4ad0c3265;hp=9c60c1b9c66a25a9c7ccc5f3c0f5d13ee40a9e91;hpb=220b5c40f91c6509951ccd0d506a9bd77d9d6bac;p=chaz%2Fopenbox diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 9c60c1b9..bfeaf31d 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() @@ -167,7 +165,7 @@ class _cycledata: if not (client.iconic() or client.desktop() == 0xffffffff or \ client.desktop() == self.screen.desktop()): root = self.screeninfo.rootWindow() - ob.send_client_msg(root, otk.Property_atoms().net_current_desktop, + ob.send_client_msg(root, otk.atoms.net_current_desktop, root, client.desktop()) # send a net_active_window message for the target @@ -175,7 +173,7 @@ class _cycledata: if final: r = focuscycle.RAISE_WINDOW else: r = 0 ob.send_client_msg(self.screeninfo.rootWindow(), - otk.Property_atoms().openbox_active_window, + otk.atoms.openbox_active_window, client.window(), final, r) def cycle(self, data, forward):