Don't pass 'foreground' to place_least_overlap()
authorDavid Vogt <dv@winged.ch>
Tue, 7 Jun 2011 17:32:43 +0000 (19:32 +0200)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Oct 2012 00:37:28 +0000 (20:37 -0400)
Removed as per Ian Zimmerman's suggestion, it's not neccessary.

openbox/place.c

index c0ae93a813194a5402835a913ffdd0e5d15639c4..579c56bdb607e4aeed032bef9fed38092860f473 100644 (file)
@@ -559,7 +559,7 @@ static gboolean place_transient_splash(ObClient *client, Rect *area,
     return FALSE;
 }
 
-static gboolean place_least_overlap(ObClient *c, gboolean foreground, gint *x, gint *y, Rect * const head)
+static gboolean place_least_overlap(ObClient *c, gint *x, gint *y, Rect * const head)
 {
     /* assemble the list of "interesting" windows to calculate overlap against */
     GSList* interesting_clients = NULL;
@@ -633,7 +633,7 @@ gboolean place_client(ObClient *client, gboolean foreground, gint *x, gint *y,
         (config_place_policy == OB_PLACE_POLICY_MOUSE
             && place_under_mouse  (client, x, y)) ||
         (config_place_policy == OB_PLACE_POLICY_LEASTOVERLAP
-            && place_least_overlap(client, foreground, x, y, area)) ||
+            && place_least_overlap(client, x, y, area)) ||
         place_nooverlap(client, area, x, y) ||
         place_random(client, area, x, y);
     g_assert(ret);