X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;h=003b0081dbe9f8221df8961db0eb4eeb02e5aae7;hb=36a437a70291c94b4c591df0cd99345f052a3e0c;hp=7c5ee32e31047643cbe0544072f0f419d3874967;hpb=1124d1036984f920dcd5b2caec9ff8fe2d788b8a;p=chaz%2Fopenbox diff --git a/openbox/geom.h b/openbox/geom.h index 7c5ee32e..003b0081 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -24,6 +24,7 @@ typedef struct _GravityCoord { gint pos; + gint denom; gboolean center; gboolean opposite; } GravityCoord; @@ -160,6 +161,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