From 34e819738b344a992a1dbfd6cdd165e0c8ddb3a9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 27 Jun 2003 04:20:30 +0000 Subject: xinerama support --- openbox/geom.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'openbox/geom.h') diff --git a/openbox/geom.h b/openbox/geom.h index a4c1752a..5f2c030c 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -34,8 +34,14 @@ typedef struct Rect { (r1).height == (r2).height) #define RECT_CONTAINS(r, x, y) \ - (x >= (r).x && x < (r).x + (r).width && \ - y >= (r).y && y < (r).y + (r).height) + ((x) >= (r).x && (x) < (r).x + (r).width && \ + (y) >= (r).y && (y) < (r).y + (r).height) +#define RECT_CONTAINS_RECT(r, o) \ + ((o).x >= (r).x && (o).x + (o).width <= (r).x + (r).width && \ + (o).y >= (r).y && (o).y + (o).height <= (r).y + (r).height) +#define RECT_INTERSECTS_RECT(r, o) \ + ((o).x < (r).x + (r).width && (o).x + (o).width > (r).x && \ + (o).y < (r).y + (r).height && (o).y + (o).height > (r).y) typedef struct Strut { int left; -- cgit v1.2.3