diff options
Diffstat (limited to 'composite/compint.h')
-rw-r--r-- | composite/compint.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/composite/compint.h b/composite/compint.h index 78a138a74..81b4027ec 100644 --- a/composite/compint.h +++ b/composite/compint.h @@ -49,6 +49,12 @@ #include <X11/extensions/compositeproto.h> #include <assert.h> +/* + * enable this for debugging + + #define COMPOSITE_DEBUG + */ + typedef struct _CompClientWindow { struct _CompClientWindow *next; XID id; @@ -118,10 +124,6 @@ typedef struct _CompScreen { XID alternateVisuals[NUM_COMP_ALTERNATE_VISUALS]; } CompScreenRec, *CompScreenPtr; -#define HasCompRedirect(w) (wPixmap(w) != wPixmap(w->parent)) -#define wScreen(w) ((w)->drawable.pScreen) -#define wPixmap(w) (*(wScreen(w)->GetWindowPixmap) (w)) - extern int CompScreenPrivateIndex; extern int CompWindowPrivateIndex; extern int CompSubwindowsPrivateIndex; @@ -192,11 +194,11 @@ compScreenInit (ScreenPtr pScreen); * compwindow.c */ -#ifdef NDEBUG -#define compCheckTree(s) -#else +#ifdef COMPOSITE_DEBUG void compCheckTree (ScreenPtr pScreen); +#else +#define compCheckTree(s) #endif void |