From: Dana Jansens Date: Mon, 30 Jun 2003 05:19:42 +0000 (+0000) Subject: messed up the indexes while finding the combined size of all xineerama heads X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1a3bcbddbc9a7952415cf6f88f1cab3582a86ca1;p=chaz%2Fopenbox messed up the indexes while finding the combined size of all xineerama heads --- diff --git a/openbox/extensions.c b/openbox/extensions.c index b2759fe1..f1439b2f 100644 --- a/openbox/extensions.c +++ b/openbox/extensions.c @@ -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 = MAX(r, (*xin_areas)[0].x + (*xin_areas)[0].width - 1); - b = MAX(b, (*xin_areas)[0].y + (*xin_areas)[0].height - 1); + r = MAX(r, (*xin_areas)[i].x + (*xin_areas)[i].width - 1); + b = MAX(b, (*xin_areas)[i].y + (*xin_areas)[i].height - 1); } RECT_SET((*xin_areas)[*nxin], l, t, r - l + 1, b - t + 1); }