summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-03 22:05:12 +0000
committerDana Jansens <danakj@orodu.net>2003-02-03 22:05:12 +0000
commit046df3e746fc608bf202419028549b9cff149db5 (patch)
tree9dee4bd4adad517d905fc0ffe28b400b56ae4bc4 /scripts
parent4de57876e3c0c15a1194f12ea4c1c07ea8da9c58 (diff)
update the client list's order after doing a stacked cycle
Diffstat (limited to 'scripts')
-rw-r--r--scripts/focus.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/focus.py b/scripts/focus.py
index f1097aa5..e766f134 100644
--- a/scripts/focus.py
+++ b/scripts/focus.py
@@ -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