summaryrefslogtreecommitdiff
path: root/openbox/geom.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-02 15:19:39 +0000
committerDana Jansens <danakj@orodu.net>2007-03-02 15:19:39 +0000
commit140c5313cfe38aada8bd15892f74fc0d21d374c1 (patch)
tree7ad0dbc5ed50a4a85310b5f3298f68dae1913112 /openbox/geom.h
parent80a6f06c0a3d6de2c7d94066c5a9764b97a600af (diff)
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
Diffstat (limited to 'openbox/geom.h')
-rw-r--r--openbox/geom.h3
1 files changed, 3 insertions, 0 deletions
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 && \