From 82d147b5d74757ce6f1676aab16c9e6e1e837b4e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 10 Feb 2003 07:35:51 +0000 Subject: better skipping of focus events while stackedcycling, fixes bug where esc would still change the order. --- scripts/focus.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/focus.py') 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) -- cgit v1.2.3