[gnome-settings-daemon] wacom: Require XInput2 for the wacom plugin



commit 3ca5fcc132ae798b62b1feb0a3a1100cbca76c0f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 14 17:28:14 2011 +0000

    wacom: Require XInput2 for the wacom plugin

 plugins/wacom/gsd-wacom-manager.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index d474fbe..d9bf779 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -528,6 +528,11 @@ gsd_wacom_manager_start (GsdWacomManager *manager,
 {
         gnome_settings_profile_start (NULL);
 
+        if (supports_xinput2_devices (NULL) == FALSE) {
+                g_debug ("No Xinput2 support, disabling plugin");
+                return TRUE;
+        }
+
         manager->priv->start_idle_id = g_idle_add ((GSourceFunc) gsd_wacom_manager_idle_cb, manager);
 
         gnome_settings_profile_end (NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]