]> Dogcows Code - chaz/openbox/commitdiff
check if they have a group
authorDana Jansens <danakj@orodu.net>
Wed, 6 Jun 2007 16:06:44 +0000 (16:06 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 6 Jun 2007 16:06:44 +0000 (16:06 +0000)
openbox/client.c

index 5661aa1329a83b6bebdce1f1995b22eee0986b66..165e545b56d95636c823e1a0215428c75d771796 100644 (file)
@@ -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;
+        }
     }
 }
 
This page took 0.030321 seconds and 4 git commands to generate.