X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;h=91dd48eb2301de62f5f1e8ac625ae669279cc042;hb=335e8acbfc5d2824f1fd2cb67a5add8e1ed40b06;hp=c992b4c02217774dfd6d53107276dfe44af7476d;hpb=16f46c296d1fcd3f27fc62a18e71c55fb3fd3e88;p=chaz%2Fopenbox diff --git a/openbox/geom.h b/openbox/geom.h index c992b4c0..91dd48eb 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -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 && \