X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=d56adfc89005e4627b54df5adf9947b594fc51b1;hb=dc6d1d75b40e3d138786d7a2e969d7225f11fb7b;hp=efcec7ed75fe9389d5fc254cd9330cbc5d8f7144;hpb=95535e86237e6c89935eb7563f37f13474c466f2;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index efcec7ed..d56adfc8 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -159,16 +159,18 @@ static Rect *pick_head(ObClient *c, gboolean foreground) } /* find monitors with group members */ - for (it = c->group->members; it; it = g_slist_next(it)) { - ObClient *itc = it->data; - if (itc != c) { - guint m = client_monitor(itc); - - if (m < screen_num_monitors) { - if (screen_compare_desktops(itc->desktop, c->desktop)) - choice[m].flags |= HEAD_GROUP_DESK; - else - choice[m].flags |= HEAD_GROUP; + if (c->group) { + for (it = c->group->members; it; it = g_slist_next(it)) { + ObClient *itc = it->data; + if (itc != c) { + guint m = client_monitor(itc); + + if (m < screen_num_monitors) { + if (screen_compare_desktops(itc->desktop, c->desktop)) + choice[m].flags |= HEAD_GROUP_DESK; + else + choice[m].flags |= HEAD_GROUP; + } } } }