X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=6c64a3bce0a7bca0023d91120b714efa0fc7e0a1;hb=4bb7543de6c66d6d9068f76f253d45f44f58d5fb;hp=664c094d6b220d8d82c4db0fb925361b85316016;hpb=4185168f9df50c724cd3e68af6740572c187b1ae;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 664c094d..6c64a3bc 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -85,8 +85,8 @@ static GSList* area_remove(GSList *list, Rect *a) } 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. */ @@ -151,7 +151,7 @@ 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)) + if (c != client && !c->shaded && client_normal(c)) spaces = area_remove(spaces, &c->frame->area); }