]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
fix comment
[chaz/openbox] / openbox / place.c
index 545355ce737766662093dca81757fc6964fd8c98..6c64a3bce0a7bca0023d91120b714efa0fc7e0a1 100644 (file)
@@ -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;
@@ -86,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.
             */
@@ -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);
This page took 0.020347 seconds and 4 git commands to generate.