diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-31 09:17:16 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-31 09:17:16 +0000 |
| commit | 1161a90a70b21d3064a9dee62c72dd4be3025ada (patch) | |
| tree | 211019053542140ae18e5411a254d535b35a5806 /scripts | |
| parent | 098fa0ce20f440da3140adad2cfe8ae9a6854d46 (diff) | |
add click_raise global var
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/clicks.py | 3 | ||||
| -rw-r--r-- | scripts/globals.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/clicks.py b/scripts/clicks.py index 91429d1f..c6f47d58 100644 --- a/scripts/clicks.py +++ b/scripts/clicks.py @@ -28,7 +28,8 @@ def def_press_model(action, win, type, modifiers, button, xroot, yroot, time): return if click_focus != 0: OBClient_focus(client) - print "OBClient_raise(client)" + if click_raise != 0: + print "OBClient_raise(client)" def def_click_root(action, win, type, modifiers, button, time): if type == Type_Root: diff --git a/scripts/globals.py b/scripts/globals.py index 025ba5b5..0a3389ec 100644 --- a/scripts/globals.py +++ b/scripts/globals.py @@ -18,6 +18,9 @@ client_buttons = ["A-1", "A-2", "A-3"] # click_focus - true if clicking in a client will cause it to focus in the # default hook functions click_focus = 0 +# click_raise - true if clicking in a client will cause it to raise to the +# top of its stacking layer +click_raise = 0 # enter_focus - true if entering a client window will cause it to focus in the # default hook functions enter_focus = 1 |
