X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;fp=openbox%2Fgeom.h;h=c71dbc239a79d2af83b21793d63e85ff612526a6;hb=7a6a516b8e3d8ad6b15379eabf6652a6f43eab27;hp=67a82cded06ae4a984b5015f354f628c99f19557;hpb=739606e39c218ad2f3cb1412267f73e4f3d49e15;p=chaz%2Fopenbox 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