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.5-7~38^2~4 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=e9d4ad4be0f4c54eabec42ae2087994b5380c8d5;p=mikachu%2Fopenbox.git Make * not crash when something isn't focused. --- diff --git a/openbox/actions.c b/openbox/actions.c index a6c20526..b43d86a9 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -471,5 +471,5 @@ gboolean actions_client_locked(ObActionsData *data) { ObClient *c = data->client; - return c && c->locked; + return !c || (c && c->locked); }