[gnome-settings-daemon/gnome-3-12] common: Handle "cursor" tablet devices explicitly in GsdDeviceMapper



commit 6bd74f7a901bceeb70ecfd26fa302e0b1e8bf55b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 24 16:25:00 2014 +0200

    common: Handle "cursor" tablet devices explicitly in GsdDeviceMapper
    
    Just set the GSD_INPUT_IS_CURSOR flag on those, so the mapper is aware
    if there are several of those around for mapping purposes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732111

 plugins/common/gsd-device-mapper.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index f73ee1f..fbfeff1 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -46,7 +46,8 @@ typedef enum {
        GSD_INPUT_IS_TOUCH             = 1 << 2, /* touch device, either touchscreen or tablet */
        GSD_INPUT_IS_PEN               = 1 << 3, /* pen device, either touchscreen or tablet */
        GSD_INPUT_IS_ERASER            = 1 << 4, /* eraser device, either touchscreen or tablet */
-       GSD_INPUT_IS_PAD               = 1 << 5  /* pad device, most usually in tablets */
+       GSD_INPUT_IS_PAD               = 1 << 5, /* pad device, most usually in tablets */
+       GSD_INPUT_IS_CURSOR            = 1 << 6  /* pointer-like device in tablets */
 } GsdInputCapabilityFlags;
 
 typedef enum {
@@ -861,6 +862,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 if (g_str_equal (tool_type, "CURSOR"))
+               info->capabilities |= GSD_INPUT_IS_CURSOR;
        else
                return FALSE;
 


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