From 30e4651787ca6f7161109591c229fcaf76cb901e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 27 Dec 2002 09:17:56 +0000 Subject: [PATCH] dont seg on multiple root clicks! --- scripts/clicks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/clicks.py b/scripts/clicks.py index 8a59df70..f9d2cb6f 100644 --- a/scripts/clicks.py +++ b/scripts/clicks.py @@ -33,7 +33,8 @@ def def_click_root(action, win, type, modifiers, button, time): if type == Type_Root: if button == Button1: print "nothing probly.." - OBClient_unfocus(Openbox_focusedClient(openbox)) + client = Openbox_focusedClient(openbox) + if client: OBClient_unfocus(client) elif button == Button2: print "workspace menu" elif button == Button3: -- 2.45.2