]> Dogcows Code - chaz/openbox/blobdiff - scripts/focuscycle.py
grab early in the cycle so that we dont miss the modifier release
[chaz/openbox] / scripts / focuscycle.py
index 36354af2b8ca8a86c167ee2c8b65d961af288de5..37d5643f265988fc8f20bbe939a1f7092e610c5d 100644 (file)
@@ -5,10 +5,10 @@
 ###########################################################################
 ###     Options that affect the behavior of the focuscycle module.      ###
 ###########################################################################
 ###########################################################################
 ###     Options that affect the behavior of the focuscycle module.      ###
 ###########################################################################
-raise_window = 1
+RAISE_WINDOW = 1
 """When cycling focus, raise the window chosen as well as focusing it. This
    does not affect fallback focusing behavior."""
 """When cycling focus, raise the window chosen as well as focusing it. This
    does not affect fallback focusing behavior."""
-# See focus.avoid_skip_taskbar
+# See focus.AVOID_SKIP_TASKBAR
 ###########################################################################
 
 def next(data, num=1):
 ###########################################################################
 
 def next(data, num=1):
@@ -58,7 +58,7 @@ def _cycle(data, num, forward):
         while 1:
             client = screen.client(t)
             if client and focus._focusable(client, desktop) and client.focus():
         while 1:
             client = screen.client(t)
             if client and focus._focusable(client, desktop) and client.focus():
-                if raise_window:
+                if RAISE_WINDOW:
                     screen.raiseWindow(client)
                 return
             if forward:
                     screen.raiseWindow(client)
                 return
             if forward:
This page took 0.029037 seconds and 4 git commands to generate.