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: mikabox-3.5-7~26 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=13e0d75cc3d0a9ed76ea532bf110ac065e5b8aea;p=mikachu%2Fopenbox.git 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 ef73bd8d..6b089562 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);