From 6f791510ce65f75c3e5ede8bfd3055922ebf3686 Mon Sep 17 00:00:00 2001 From: David Vogt Date: Tue, 7 Jun 2011 19:32:43 +0200 Subject: [PATCH] Don't pass 'foreground' to place_least_overlap() Removed as per Ian Zimmerman's suggestion, it's not neccessary. --- openbox/place.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1