place windows in the largest area not the widest one, reverts to 3.4.2 behavior so the dock doesn't screw up placement

This commit is contained in:
Dana Jansens 2007-08-03 20:46:11 -04:00
parent 3b4b52921a
commit 9c9095ffac

View file

@ -316,9 +316,9 @@ static gboolean place_nooverlap(ObClient *c, gint *x, gint *y)
if (r->width >= c->frame->area.width && if (r->width >= c->frame->area.width &&
r->height >= c->frame->area.height && r->height >= c->frame->area.height &&
r->width > maxsize) r->width * r->height > maxsize)
{ {
maxsize = r->width; maxsize = r->width * r->height;
maxit = sit; maxit = sit;
} }
} }