]> Dogcows Code - chaz/openbox/blobdiff - scripts/clicks.py
add some const
[chaz/openbox] / scripts / clicks.py
index 8a59df70276d8646194ef506d91081ab68d3fbfd..f9d2cb6fa0a28ca3eff0177f2c957fde53ca56db 100644 (file)
@@ -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:
This page took 0.02042 seconds and 4 git commands to generate.