From: Dana Jansens Date: Wed, 6 Jun 2007 16:06:44 +0000 (+0000) Subject: check if they have a group X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5c78f329ae40b60f7310e772e6f0a58f962005f6;p=chaz%2Fopenbox check if they have a group --- diff --git a/openbox/client.c b/openbox/client.c index 5661aa13..165e545b 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2396,11 +2396,13 @@ ObClient *client_search_focus_group_full(ObClient *self) { GSList *it; - for (it = self->group->members; it; it = g_slist_next(it)) { - ObClient *c = it->data; + if (self->group) { + for (it = self->group->members; it; it = g_slist_next(it)) { + ObClient *c = it->data; - if (client_focused(c)) return c; - if ((c = client_search_focus_tree(it->data))) return c; + if (client_focused(c)) return c; + if ((c = client_search_focus_tree(it->data))) return c; + } } }