From: Dana Jansens Date: Sat, 4 Aug 2007 00:46:11 +0000 (-0400) Subject: place windows in the largest area not the widest one, reverts to 3.4.2 behavior so... X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=commitdiff_plain;h=9c9095ffac7254da315f53a070f5686dcbc2cf8a place windows in the largest area not the widest one, reverts to 3.4.2 behavior so the dock doesn't screw up placement --- 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; } }