From: Jason Gerecke Date: Tue, 27 Jun 2017 21:21:05 +0000 (-0700) Subject: x11: Assign GDK_SOURCE_TABLET_PAD when necessary X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~489 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d9a945803a043e85ef6d1493b2c3fdfc6f4f2ba;p=gtk%2B3.0.git x11: Assign GDK_SOURCE_TABLET_PAD when necessary Wacom tablets often have a "pad" device which houses multiple buttons. At present, these devices are incorrectly marked as GDK_SOURCE_PEN which can cause problems for some software. https://bugzilla.gnome.org/show_bug.cgi?id=782040 --- diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 6c941d56f2..e7dfcb587d 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -433,6 +433,8 @@ create_device (GdkDeviceManager *device_manager, input_source = GDK_SOURCE_ERASER; else if (strstr (tmp_name, "cursor")) input_source = GDK_SOURCE_CURSOR; + else if (strstr (tmp_name, " pad")) + input_source = GDK_SOURCE_TABLET_PAD; else if (strstr (tmp_name, "wacom") || strstr (tmp_name, "pen")) input_source = GDK_SOURCE_PEN;