X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fclicks.py;h=f9d2cb6fa0a28ca3eff0177f2c957fde53ca56db;hb=390d447d9ba92878fbd1a0f7955edb5f83256195;hp=8a59df70276d8646194ef506d91081ab68d3fbfd;hpb=e9ec2ce0ebccf3b139ebf4fccf093e8ee0366c76;p=chaz%2Fopenbox 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: