diff options
| author | Dana Jansens <danakj@orodu.net> | 2009-12-17 10:22:05 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2009-12-17 10:24:48 -0500 |
| commit | d3347e8be3753b7a466353aece04a25992018c9a (patch) | |
| tree | c2080bb872d06124df74ecc2195c72dd104b2038 | |
| parent | 3eb941a3926e2c3e803ece046211c72c1e095746 (diff) | |
Ranges of 0 width cannot intersect (Fixes bug #3717)
| -rw-r--r-- | openbox/geom.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
