all repos — openbox @ e2b245dcad971db4b565fa10c5ed3d5c10a2fcff

openbox fork - make it a bit more like ryudo

oops, i want the max edges to find the full area
Dana Jansens danakj@orodu.net
commit

e2b245dcad971db4b565fa10c5ed3d5c10a2fcff

parent

bc12dc05a436210e43f48e7ec784fbba310e4497

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/extensions.copenbox/extensions.c

@@ -83,8 +83,8 @@ b = (*xin_areas)[0].y + (*xin_areas)[0].height - 1;

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); }