]> Dogcows Code - chaz/openbox/blobdiff - openbox/geom.h
very cool struts. partial struts actually are partial struts now. possibly way broken...
[chaz/openbox] / openbox / geom.h
index 67a82cded06ae4a984b5015f354f628c99f19557..c71dbc239a79d2af83b21793d63e85ff612526a6 100644 (file)
@@ -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
This page took 0.023075 seconds and 4 git commands to generate.