summaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-08-27 02:17:49 +0000
committerHavoc Pennington <hp@src.gnome.org>2004-08-27 02:17:49 +0000
commit1f7f29e059f4e835a33c94a5bc88d43f718429cc (patch)
treedb5c42239d945e5b5058b804f502c8239bf2dc35 /src/display.h
parent0b497e95edbe3100836d7369aa646259d15a651a (diff)
downloadmetacity-1f7f29e059f4e835a33c94a5bc88d43f718429cc.tar.gz
metacity-1f7f29e059f4e835a33c94a5bc88d43f718429cc.tar.bz2
move the have_xrender variable initialization up in the file since it can
2004-08-26 Havoc Pennington <hp@redhat.com> * configure.in: move the have_xrender variable initialization up in the file since it can be set as part of composite check 2004-08-19 Havoc Pennington <hp@redhat.com> Fixes from Rich Wareham * src/display.h (struct _MetaDisplay): add render extension check to the display * src/display.c: check for render * configure.in: don't build compositing manager by default, don't want any nasty surprises; check for render separately from compositing manager * src/frame.c: use an ARGB visual when available for the window frame, so we can be all cool-ass
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/display.h b/src/display.h
index 8b93253..cfc3b98 100644
--- a/src/display.h
+++ b/src/display.h
@@ -316,17 +316,33 @@ struct _MetaDisplay
#ifdef HAVE_XSYNC
int xsync_event_base;
int xsync_error_base;
-#define META_DISPLAY_HAS_XSYNC(display) ((display)->xsync_event_base != 0)
-#else
-#define META_DISPLAY_HAS_XSYNC(display) FALSE
#endif
#ifdef HAVE_SHAPE
int shape_event_base;
int shape_error_base;
-#define META_DISPLAY_HAS_SHAPE(display) ((display)->shape_event_base != 0)
+#endif
+#ifdef HAVE_RENDER
+ int render_event_base;
+ int render_error_base;
+#endif
+#ifdef HAVE_XSYNC
+ unsigned int have_xsync : 1;
+#define META_DISPLAY_HAS_XSYNC(display) ((display)->have_xsync)
+#else
+#define META_DISPLAY_HAS_XSYNC(display) FALSE
+#endif
+#ifdef HAVE_SHAPE
+ unsigned int have_shape : 1;
+#define META_DISPLAY_HAS_SHAPE(display) ((display)->have_shape)
#else
#define META_DISPLAY_HAS_SHAPE(display) FALSE
#endif
+#ifdef HAVE_RENDER
+ unsigned int have_render : 1;
+#define META_DISPLAY_HAS_RENDER(display) ((display)->have_render)
+#else
+#define META_DISPLAY_HAS_RENDER(display) FALSE
+#endif
};
gboolean meta_display_open (const char *name);