diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-08-03 20:46:11 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-08-03 20:46:11 -0400 |
| commit | 9c9095ffac7254da315f53a070f5686dcbc2cf8a (patch) | |
| tree | 0f9fd8a4055f36b773bf686cf235f6a4698f5d57 /openbox/place.c | |
| parent | 3b4b52921adba74472904b37ec13d9c8d8686a10 (diff) | |
place windows in the largest area not the widest one, reverts to 3.4.2 behavior so the dock doesn't screw up placement
Diffstat (limited to 'openbox/place.c')
| -rw-r--r-- | openbox/place.c | 4 |
1 files 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; } } |
