From: Mikael Magnusson Date: Thu, 18 Apr 2013 13:36:56 +0000 (+0200) Subject: Fix least overlap to fall back to the chosen monitor, not (0,0). X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=commitdiff_plain;h=e6a5acaf1bb8a4856431d9d4b64323bb0ed680d3 Fix least overlap to fall back to the chosen monitor, not (0,0). --- diff --git a/openbox/place_overlap.c b/openbox/place_overlap.c index 5cca1bc2..af394b10 100644 --- a/openbox/place_overlap.c +++ b/openbox/place_overlap.c @@ -39,7 +39,7 @@ void place_overlap_find_least_placement(const Rect* client_rects, const Size* req_size, Point* result) { - POINT_SET(*result, 0, 0); + POINT_SET(*result, bound->x, bound->y); int overlap = G_MAXINT; int max_edges = 2 * (n_client_rects + 1);