From: Dana Jansens Date: Thu, 17 Dec 2009 15:22:05 +0000 (-0500) Subject: Ranges of 0 width cannot intersect (Fixes bug #3717) X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d3347e8be3753b7a466353aece04a25992018c9a;p=chaz%2Fopenbox Ranges of 0 width cannot intersect (Fixes bug #3717) --- 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