summaryrefslogtreecommitdiff
path: root/Xext/panoramiX.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-03-09 15:11:42 +1000
committerDave Airlie <airlied@redhat.com>2011-03-10 09:08:56 +1000
commitc48c530e541e201ea1afe2512d85967659ceef84 (patch)
tree612e8e39dc237f3d64dd05aecde16b934c1159e6 /Xext/panoramiX.h
parent628d16a92a7fa556fbb70bf4a4adf57ec05c190b (diff)
panoramiX: macro checking if drawable is root (v2)
this code appears in quite a few places, consolidate it into a macro in a header. v2: align braces with macro just above it, and with lines removed Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext/panoramiX.h')
-rw-r--r--Xext/panoramiX.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xext/panoramiX.h b/Xext/panoramiX.h
index a8684f0d2..e4938f5bd 100644
--- a/Xext/panoramiX.h
+++ b/Xext/panoramiX.h
@@ -75,4 +75,5 @@ typedef struct {
#define IS_SHARED_PIXMAP(r) (((r)->type == XRT_PIXMAP) && (r)->u.pix.shared)
+#define IS_ROOT_DRAWABLE(d) (((d)->type == XRT_WINDOW) && (d)->u.win.root)
#endif /* _PANORAMIX_H_ */