summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-12-10 16:51:43 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-12-11 11:48:06 +0100
commita0e2ba62a185c2db1fb998863f3e2011aebfaf68 (patch)
tree1be1fdd691efc2bec099131beb8a32460854db6c
parent1cabee8d24ad57208de7d4c4b8a34cdd93cd1d43 (diff)
downloadclutter-a0e2ba62a185c2db1fb998863f3e2011aebfaf68.tar.gz
x11: Resort to device name matching for non-mt touchpads
If a touchpad is not multitouch, or does not report MT axes (eg. through the libinput driver), resort to name matching before falling back to CLUTTER_POINTER_DEVICE. https://bugzilla.gnome.org/show_bug.cgi?id=741350
-rw-r--r--clutter/x11/clutter-device-manager-xi2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
index aef0bd666..375b69d9f 100644
--- a/clutter/x11/clutter-device-manager-xi2.c
+++ b/clutter/x11/clutter-device-manager-xi2.c
@@ -269,6 +269,8 @@ create_device (ClutterDeviceManagerXI2 *manager_xi2,
source = CLUTTER_CURSOR_DEVICE;
else if (strstr (name, "wacom") != NULL || strstr (name, "pen") != NULL)
source = CLUTTER_PEN_DEVICE;
+ else if (strstr (name, "touchpad") != NULL)
+ source = CLUTTER_TOUCHPAD_DEVICE;
else
source = CLUTTER_POINTER_DEVICE;