From 5c78f329ae40b60f7310e772e6f0a58f962005f6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 6 Jun 2007 16:06:44 +0000 Subject: [PATCH] check if they have a group --- openbox/client.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; + } } } -- 2.45.2