]> Dogcows Code - chaz/openbox/blobdiff - openbox/geom.h
yay no tabs in the source
[chaz/openbox] / openbox / geom.h
index c992b4c02217774dfd6d53107276dfe44af7476d..91dd48eb2301de62f5f1e8ac625ae669279cc042 100644 (file)
@@ -53,7 +53,7 @@ typedef struct _Rect {
     (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h)
 
 #define RECT_EQUAL(r1, r2) ((r1).x == (r2).x && (r1).y == (r2).y && \
-                           (r1).width == (r2).width && \
+                            (r1).width == (r2).width && \
                             (r1).height == (r2).height)
 
 #define RECT_CONTAINS(r, px, py) \
@@ -110,6 +110,12 @@ typedef struct _StrutPartial {
     (s1).bottom = MAX((s1).bottom, (s2).bottom)
 
 #define STRUT_EQUAL(s1, s2) \
+    ((s1).left == (s2).left && \
+     (s1).top == (s2).top && \
+     (s1).right == (s2).right && \
+     (s1).bottom == (s2).bottom)
+
+#define PARTIAL_STRUT_EQUAL(s1, s2) \
     ((s1).left == (s2).left && \
      (s1).top == (s2).top && \
      (s1).right == (s2).right && \
This page took 0.025194 seconds and 4 git commands to generate.