From e6a5acaf1bb8a4856431d9d4b64323bb0ed680d3 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 18 Apr 2013 15:36:56 +0200 Subject: [PATCH] Fix least overlap to fall back to the chosen monitor, not (0,0). --- openbox/place_overlap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);