From 140c5313cfe38aada8bd15892f74fc0d21d374c1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 2 Mar 2007 15:19:39 +0000 Subject: only update the screen areas when a window actually has a strut (or when the strut changes), don't waste extra calls to screen areas, because it makes people redraw when they don't need to --- openbox/geom.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbox/geom.h') diff --git a/openbox/geom.h b/openbox/geom.h index fed39188..e77228c1 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -113,6 +113,9 @@ typedef struct _StrutPartial { (s1).top = MAX((s1).top, (s2).top), \ (s1).bottom = MAX((s1).bottom, (s2).bottom) +#define STRUT_EXISTS(s1) \ + ((s1).left || (s1).top || (s1).right || (s1).bottom) + #define STRUT_EQUAL(s1, s2) \ ((s1).left == (s2).left && \ (s1).top == (s2).top && \ -- cgit v1.2.3