diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-06 16:06:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-06 16:06:44 +0000 |
| commit | 5c78f329ae40b60f7310e772e6f0a58f962005f6 (patch) | |
| tree | 633bccd5ac5f1a7b70d574574dd6b4caf301bea7 | |
| parent | 1fc480c193e66c45f3c4f0b9da76ec8ae2fc8ed7 (diff) | |
check if they have a group
| -rw-r--r-- | openbox/client.c | 10 |
1 files 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; + } } } |
