summaryrefslogtreecommitdiffstats
path: root/twin/compton-tde/common.h
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2014-04-07 02:00:35 +0400
committerSlávek Banko <slavek.banko@axis.cz>2014-04-29 02:00:29 +0200
commit7c55134dee71ab9a2f916ed2f61d33c45a7681df (patch)
treea5f3c915ce6f08071b51ea22bc4d8c026b38d71e /twin/compton-tde/common.h
parent30252262ce90415f09232c51724a393c8dd6a7fe (diff)
downloadtdebase-7c55134dee71ab9a2f916ed2f61d33c45a7681df.tar.gz
tdebase-7c55134dee71ab9a2f916ed2f61d33c45a7681df.zip
twin/compton-tde: make XRandR support optional in compot-tde
Diffstat (limited to 'twin/compton-tde/common.h')
-rw-r--r--twin/compton-tde/common.h7
1 files changed, 6 insertions, 1 deletions
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 <X11/extensions/Xdamage.h>
#include <X11/extensions/Xrender.h>
#include <X11/extensions/shape.h>
-#include <X11/extensions/Xrandr.h>
#include <X11/extensions/Xdbe.h>
#ifdef CONFIG_XSYNC
#include <X11/extensions/sync.h>
#endif
+#ifdef CONFIG_XRANDR
+#include <X11/extensions/Xrandr.h>
+#endif
+
#ifdef CONFIG_XINERAMA
#include <X11/extensions/Xinerama.h>
#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;