From 9c9095ffac7254da315f53a070f5686dcbc2cf8a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 Aug 2007 20:46:11 -0400 Subject: [PATCH] place windows in the largest area not the widest one, reverts to 3.4.2 behavior so the dock doesn't screw up placement --- openbox/place.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox/place.c b/openbox/place.c index 6a97c363..7c20c79f 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -316,9 +316,9 @@ static gboolean place_nooverlap(ObClient *c, gint *x, gint *y) if (r->width >= c->frame->area.width && r->height >= c->frame->area.height && - r->width > maxsize) + r->width * r->height > maxsize) { - maxsize = r->width; + maxsize = r->width * r->height; maxit = sit; } } -- 2.45.2