]> Dogcows Code - chaz/openbox/commitdiff
oops, i want the max edges to find the full area
authorDana Jansens <danakj@orodu.net>
Mon, 30 Jun 2003 05:10:51 +0000 (05:10 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 30 Jun 2003 05:10:51 +0000 (05:10 +0000)
openbox/extensions.c

index ddcb83bbf8c70976914550c26777ddcb21bf69c6..b2759fe1f59749c4f581a9d304bcc5d786fe04a7 100644 (file)
@@ -83,8 +83,8 @@ void extensions_xinerama_screens(Rect **xin_areas, guint *nxin)
     for (i = 1; i < *nxin; ++i) {
         l = MIN(l, (*xin_areas)[i].x);
         t = MIN(l, (*xin_areas)[i].y);
-        r = MIN(r, (*xin_areas)[0].x + (*xin_areas)[0].width - 1);
-        b = MIN(b, (*xin_areas)[0].y + (*xin_areas)[0].height - 1);
+        r = MAX(r, (*xin_areas)[0].x + (*xin_areas)[0].width - 1);
+        b = MAX(b, (*xin_areas)[0].y + (*xin_areas)[0].height - 1);
     }
     RECT_SET((*xin_areas)[*nxin], l, t, r - l + 1, b - t + 1);
 }
This page took 0.024355 seconds and 4 git commands to generate.