[gnome-settings-daemon/gnome-3-12] common: Fallback to GDK device type detection for Wacom touchscreens



commit b4a13925c2072f00ab3908664efb721cf3c00bea
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 22 12:58:17 2014 +0200

    common: Fallback to GDK device type detection for Wacom touchscreens
    
    libwacom support around touchscreens is unfortunately bumpy, and the
    "TOUCH" value in the "Wacom Tool Type" property doesn't discern direct
    from indirect touch devices, so ultimately rely on the GdkInputSource
    to set the "system-integrated" flag expected on touchscreens.

 plugins/common/gsd-device-mapper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 3280d0c..f73ee1f 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -861,6 +861,8 @@ input_info_update_capabilities_from_tool_type (GsdInputInfo *info)
                info->capabilities |= GSD_INPUT_IS_ERASER;
        else if (g_str_equal (tool_type, "PAD"))
                info->capabilities |= GSD_INPUT_IS_PAD;
+       else
+               return FALSE;
 
        return TRUE;
 }


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