]> Dogcows Code - chaz/openbox/commitdiff
dont seg on multiple root clicks!
authorDana Jansens <danakj@orodu.net>
Fri, 27 Dec 2002 09:17:56 +0000 (09:17 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 27 Dec 2002 09:17:56 +0000 (09:17 +0000)
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.029716 seconds and 4 git commands to generate.