From 7c55134dee71ab9a2f916ed2f61d33c45a7681df Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Mon, 7 Apr 2014 02:00:35 +0400 Subject: twin/compton-tde: make XRandR support optional in compot-tde --- twin/compton-tde/common.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'twin/compton-tde/common.h') diff --git a/twin/compton-tde/common.h b/twin/compton-tde/common.h index 44be226a5..6f61e7822 100644 --- a/twin/compton-tde/common.h +++ b/twin/compton-tde/common.h @@ -106,12 +106,15 @@ #include #include #include -#include #include #ifdef CONFIG_XSYNC #include #endif +#ifdef CONFIG_XRANDR +#include +#endif + #ifdef CONFIG_XINERAMA #include #endif @@ -921,12 +924,14 @@ typedef struct _session_t { int shape_event; /// Error base number for X Shape extension. int shape_error; +#ifdef CONFIG_XRANDR /// Whether X RandR extension exists. bool randr_exists; /// Event base number for X RandR extension. int randr_event; /// Error base number for X RandR extension. int randr_error; +#endif // CONFIG_XRANDR #ifdef CONFIG_VSYNC_OPENGL /// Whether X GLX extension exists. bool glx_exists; -- cgit v1.2.1