X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fgeom.h;h=91dd48eb2301de62f5f1e8ac625ae669279cc042;hb=89f223e2533761b68bb3ba473c92f37466387c8a;hp=6553b74edd259e24bbb6c3debecabe6fb1f375e8;hpb=c4e4760c41f10aae6af19a4363cb247c71edee4b;p=chaz%2Fopenbox diff --git a/openbox/geom.h b/openbox/geom.h index 6553b74e..91dd48eb 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -1,4 +1,4 @@ -/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- geom.h for the Openbox window manager Copyright (c) 2003 Ben Jansens @@ -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 && \