X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fclicks.py;h=f9d2cb6fa0a28ca3eff0177f2c957fde53ca56db;hb=c9ca0e797de3f8b67b47333476a98b18445cdb67;hp=39effd53462245cff55186c3b1a951a162d4d32d;hpb=2ae2b257d39ea62640c2590f794e4275c6db1cd4;p=chaz%2Fopenbox diff --git a/scripts/clicks.py b/scripts/clicks.py index 39effd53..f9d2cb6f 100644 --- a/scripts/clicks.py +++ b/scripts/clicks.py @@ -33,6 +33,8 @@ def def_click_root(action, win, type, modifiers, button, time): if type == Type_Root: if button == Button1: print "nothing probly.." + client = Openbox_focusedClient(openbox) + if client: OBClient_unfocus(client) elif button == Button2: print "workspace menu" elif button == Button3: @@ -50,7 +52,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)