From: Dana Jansens Date: Fri, 27 Dec 2002 09:17:56 +0000 (+0000) Subject: dont seg on multiple root clicks! X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=30e4651787ca6f7161109591c229fcaf76cb901e;p=chaz%2Fopenbox dont seg on multiple root clicks! --- 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: