]> Dogcows Code - chaz/openbox/commitdiff
update the client list's order after doing a stacked cycle
authorDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 22:05:12 +0000 (22:05 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 22:05:12 +0000 (22:05 +0000)
scripts/focus.py

index f1097aa51426c69f952c080123d7b02bcf09c1e0..e766f1344f7ace90ebab8b4c43533d09b389e64b 100644 (file)
@@ -89,9 +89,12 @@ def _focused(data):
     global _clients
     global _doing_stacked
     global _cyc_w
+
+    print "FOCUSED " + str(data.client)
     
     if data.client:
         if not _doing_stacked: # only move the window when we're not cycling
+            print "HI"
             win = data.client.window()
             # move it to the top
             _clients.remove(win)
@@ -152,9 +155,11 @@ def _focus_stacked_ungrab(data):
             ob.kungrab()
             ob.mungrab()
             _doing_stacked = 0;
-            if cycle_raise:
-                client = ob.openbox.findClient(_cyc_w)
-                if client:
+            client = ob.openbox.findClient(_cyc_w)
+            if client:
+                data.client = client
+                _focused(data) # resort the list as appropriate
+                if cycle_raise:
                     ob.openbox.screen(data.screen).raiseWindow(client)
 
 _list_widget = 0
This page took 0.025377 seconds and 4 git commands to generate.