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
This commit is contained in:
Carlos Garnacho 2014-12-10 16:51:43 +01:00
parent 1cabee8d24
commit a0e2ba62a1
1 changed files with 2 additions and 0 deletions

View File

@ -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;