diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-13 01:50:01 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-13 01:50:01 +0000 |
| commit | 7a6a516b8e3d8ad6b15379eabf6652a6f43eab27 (patch) | |
| tree | 9428e8773cfd3441d26a3585990d07f8286b1f86 /openbox/geom.h | |
| parent | 739606e39c218ad2f3cb1412267f73e4f3d49e15 (diff) | |
very cool struts. partial struts actually are partial struts now. possibly way broken with xinerama?
Diffstat (limited to 'openbox/geom.h')
| -rw-r--r-- | openbox/geom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/geom.h b/openbox/geom.h index 67a82cde..c71dbc23 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -142,4 +142,7 @@ typedef struct _StrutPartial { (s1).bottom_start == (s2).bottom_start && \ (s1).bottom_end == (s2).bottom_end) +#define RANGE_INTERSECT(r1x, r1w, r2x, r2w) \ + (r1x < r2x + r2w && r1x + r1w > r2x) + #endif |
