]> Dogcows Code - chaz/openbox/blobdiff - scripts/focus.py
remove debug print
[chaz/openbox] / scripts / focus.py
index e9a974b5f0ebd1da395ef583fce81a8c6c966e51..3bbf600fed1a9dcb6f0fa9eeb23a67c30ea89439 100644 (file)
@@ -24,11 +24,12 @@ 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
     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()
@@ -49,7 +50,10 @@ def _remove(client):
 def _focused(data):
     global _clients
 
-    if _disable: return
+    if _skip:
+        global _skip
+        _skip -= 1
+        return
 
     if data.client:
         # move it to the top
This page took 0.025634 seconds and 4 git commands to generate.