From: Mikael Magnusson Date: Thu, 28 Feb 2008 18:42:46 +0000 (+0100) Subject: Make * not crash when something isn't focused. X-Git-Tag: mikabox-3.4.7.2~24^2~12 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=db53075917686a34b6a23d561b5f2da98465fe64;p=mikachu%2Fopenbox.git Make * not crash when something isn't focused. --- diff --git a/openbox/actions.c b/openbox/actions.c index 8e84a82f..c49d80a7 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -368,5 +368,5 @@ gboolean actions_client_locked(ObActionsData *data) { ObClient *c = data->client; - return c && c->locked; + return !c || (c && c->locked); }