]> Dogcows Code - chaz/openbox/blobdiff - scripts/clicks.py
add some globals to modify the default scripting behavior
[chaz/openbox] / scripts / clicks.py
index f9d2cb6fa0a28ca3eff0177f2c957fde53ca56db..91429d1ff725a3db10b66f21d713c7b3c894aa12 100644 (file)
@@ -26,7 +26,8 @@ def def_press_model(action, win, type, modifiers, button, xroot, yroot, time):
                          type == Type_MaximizeButton or
                          type == Type_CloseButton):
                return
-       OBClient_focus(client)
+       if click_focus != 0:
+               OBClient_focus(client)
        print "OBClient_raise(client)"
 
 def def_click_root(action, win, type, modifiers, button, time):
@@ -52,7 +53,7 @@ def def_doubleclick_client(action, win, type, modifiers, button, time):
                print "OBClient_toggleshade(client)"
 
 
-#preregister(Action_ButtonPress, def_press_model)
+preregister(Action_ButtonPress, def_press_model)
 register(Action_Click, def_click_client)
 register(Action_Click, def_click_root)
 register(Action_DoubleClick, def_doubleclick_client)
This page took 0.023011 seconds and 4 git commands to generate.