Make * not crash when something isn't focused.
authorMikael Magnusson <mikachu@comhem.se>
Thu, 28 Feb 2008 18:42:46 +0000 (19:42 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 8 Mar 2008 16:24:08 +0000 (17:24 +0100)
openbox/actions.c

index 8e84a82f5c0c7bcfe854148b297401c89d7db17e..c49d80a7e08a00cf8ede3ff32203a4ebe0f97bc5 100644 (file)
@@ -368,5 +368,5 @@ gboolean actions_client_locked(ObActionsData *data)
 {
     ObClient *c = data->client;
 
-    return c && c->locked;
+    return !c || (c && c->locked);
 }