return g_slist_prepend(list, r);
}
-
static GSList* area_remove(GSList *list, Rect *a)
{
GSList *sit;
} else {
Rect isect, extra;
- /* Use an intersection of win and curr to determine the space
- around curr that we can use.
+ /* Use an intersection of a and r to determine the space
+ around r that we can use.
NOTE: the spaces calculated can overlap.
*/
for (it = list; it; it = g_list_next(it)) {
ObClient *c = it->data;
- if (c == client || c->shaded || !client_normal(c))
- continue;
- spaces = area_remove(spaces, &c->frame->area);
+ if (c != client && !c->shaded && client_normal(c))
+ spaces = area_remove(spaces, &c->frame->area);
}
spaces = g_slist_sort(spaces, area_cmp);