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-Tag: release-3.5.1~51 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=e6a5acaf1bb8a4856431d9d4b64323bb0ed680d3;hp=53b8c86a608021b3adaf15fcf330aed3f82158e7 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 5cca1bc..af394b1 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);