X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=a641eb5e7a449f642355d000ab9c7a45bfdd3ed0;hb=1f451f5de0906cd754419e04407ad6ea4d1e87ef;hp=545355ce737766662093dca81757fc6964fd8c98;hpb=a9ae2f481ab444010dc34e1fde24839ff37d4fd3;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 545355ce..a641eb5e 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -71,7 +71,6 @@ static GSList* area_add(GSList *list, Rect *a) return g_slist_prepend(list, r); } - static GSList* area_remove(GSList *list, Rect *a) { GSList *sit; @@ -152,9 +151,8 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y) 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);