mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
1cabee8d24
commit
a0e2ba62a1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user