[PATCH 1/5] dix: don't InitXTestDevices if there's no XTest extension

przanoni at gmail.com przanoni at gmail.com
Tue Nov 1 06:12:34 PDT 2011


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 dix/devices.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dix/devices.c b/dix/devices.c
index 673a360..9d67c06 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -681,7 +681,10 @@ InitCoreDevices(void)
         !EnableDevice(inputInfo.keyboard, TRUE))
         FatalError("Failed to enable core devices.");
 
-    InitXTestDevices();
+#ifdef XTEST
+    if (!noTestExtensions)
+	InitXTestDevices();
+#endif
 }
 
 /**
-- 
1.7.7



More information about the xorg-devel mailing list