From: David Vogt Date: Tue, 7 Jun 2011 17:32:43 +0000 (+0200) Subject: Don't pass 'foreground' to place_least_overlap() X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6f791510ce65f75c3e5ede8bfd3055922ebf3686;p=dana%2Fopenbox.git Don't pass 'foreground' to place_least_overlap() Removed as per Ian Zimmerman's suggestion, it's not neccessary. --- diff --git a/openbox/place.c b/openbox/place.c index c0ae93a8..579c56bd 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -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);