[gnome-control-center] common: Add tablet device type to pad GdkDevices



commit 3b72790b721fe64d0119030046352904e87c91fa
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 12 21:43:57 2017 +0200

    common: Add tablet device type to pad GdkDevices
    
    The wacom panel expects all tablet devices to have the "tablet"
    device type flag set on the GsdDevice, otherwise devices won't get
    recognized and paired with the other devices for the same tablet.
    Uncovered now that GTK+ correctly uses GDK_SOURCE_TABLET_PAD for
    pad devices on X11.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784882

 panels/common/gsd-device-manager-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/common/gsd-device-manager-x11.c b/panels/common/gsd-device-manager-x11.c
index 20eafc1..137f83a 100644
--- a/panels/common/gsd-device-manager-x11.c
+++ b/panels/common/gsd-device-manager-x11.c
@@ -70,7 +70,7 @@ device_get_device_type (GdkDevice *gdk_device)
        case GDK_SOURCE_TOUCHPAD:
                return GSD_DEVICE_TYPE_TOUCHPAD;
        case GDK_SOURCE_TABLET_PAD:
-               return GSD_DEVICE_TYPE_PAD;
+               return GSD_DEVICE_TYPE_TABLET | GSD_DEVICE_TYPE_PAD;
        }
 
        g_warning ("Unhandled input source %d\n", source);


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