# maintain a list of clients, stacked in focus order
_clients = []
-_disable = 0
+_skip = 0
def _focusable(client, desktop):
if not client.normal(): return 0
if not (client.canFocus() or client.focusNotify()): return 0
+ if client.iconic(): return 0
if AVOID_SKIP_TASKBAR and client.skipTaskbar(): return 0
desk = client.desktop()
def _focused(data):
global _clients
- if _disable: return
+ if _skip:
+ global _skip
+ _skip -= 1
+ return
if data.client:
# move it to the top