]> Dogcows Code - chaz/openbox/commitdiff
place windows in the largest area not the widest one, reverts to 3.4.2 behavior so...
authorDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 00:46:11 +0000 (20:46 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 00:46:11 +0000 (20:46 -0400)
openbox/place.c

index 6a97c36328e50b389a27489a94b1b9f1efda538f..7c20c79f81ef54b2bf47849eb52caaecc2011c34 100644 (file)
@@ -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;
                 }
             }
This page took 0.024344 seconds and 4 git commands to generate.