X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;h=43eb8ea3ab128b598174cb2e4948af7e6b5e4d21;hb=e61f58462fe0cdd85090b621c6906b2885990071;hp=67a82cded06ae4a984b5015f354f628c99f19557;hpb=8f87a8af62c092617e7b5f4733d18ed11109f2ac;p=chaz%2Fopenbox diff --git a/openbox/geom.h b/openbox/geom.h index 67a82cde..43eb8ea3 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 RANGES_INTERSECT(r1x, r1w, r2x, r2w) \ + (r1x < r2x + r2w && r1x + r1w > r2x) + #endif