mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
x11/device-manager-xi2: Remove heuristics for touchscreen devices
Devices that have touch valuator classes will be touchscreens or touchpads; anything else should be ignored.
This commit is contained in:
parent
532904e43d
commit
86a5213473
@ -251,9 +251,6 @@ create_device (ClutterDeviceManagerXI2 *manager_xi2,
|
||||
source = CLUTTER_ERASER_DEVICE;
|
||||
else if (strstr (name, "cursor") != NULL)
|
||||
source = CLUTTER_CURSOR_DEVICE;
|
||||
else if (strstr (name, "finger") != NULL ||
|
||||
(strstr (name, "touch") != NULL && strstr (name, "touchpad") == NULL))
|
||||
source = CLUTTER_TOUCHSCREEN_DEVICE;
|
||||
else if (strstr (name, "wacom") != NULL || strstr (name, "pen") != NULL)
|
||||
source = CLUTTER_PEN_DEVICE;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user