From 1161a90a70b21d3064a9dee62c72dd4be3025ada Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 31 Dec 2002 09:17:16 +0000 Subject: add click_raise global var --- scripts/clicks.py | 3 ++- scripts/globals.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3