diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-10 07:35:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-10 07:35:51 +0000 |
| commit | 82d147b5d74757ce6f1676aab16c9e6e1e837b4e (patch) | |
| tree | 9d62b2cc01ce06595662c6a5c8a1f4439ff099da /scripts/focus.py | |
| parent | 4ef15148365c223b8e810611a10dc27dc5fba355 (diff) | |
better skipping of focus events while stackedcycling, fixes bug where esc would still change the order.
Diffstat (limited to 'scripts/focus.py')
| -rw-r--r-- | scripts/focus.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/focus.py b/scripts/focus.py index 2fb6188a..de426c72 100644 --- a/scripts/focus.py +++ b/scripts/focus.py @@ -24,7 +24,7 @@ import ob # maintain a list of clients, stacked in focus order _clients = [] -_disable = 0 +_skip = 0 def _focusable(client, desktop): if not client.normal(): return 0 @@ -50,9 +50,13 @@ def _remove(client): def _focused(data): global _clients - if _disable: return + if _skip: + global _skip + _skip -= 1 + return if data.client: + print data.client.window() # move it to the top try: _remove(data.client) |
