X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;fp=openbox%2Fgeom.h;h=6a1725e868050b2728abfe665eda783fa8bbc3ea;hb=d3347e8be3753b7a466353aece04a25992018c9a;hp=7c5ee32e31047643cbe0544072f0f419d3874967;hpb=3eb941a3926e2c3e803ece046211c72c1e095746;p=chaz%2Fopenbox diff --git a/openbox/geom.h b/openbox/geom.h index 7c5ee32e..6a1725e8 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -160,6 +160,6 @@ typedef struct _StrutPartial { (s1).bottom_end == (s2).bottom_end) #define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \ - (r1x < r2x + r2w && r1x + r1w > r2x) + (r1w && r2w && r1x < r2x + r2w && r1x + r1w > r2x) #endif