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:
Emmanuele Bassi 2012-04-07 23:07:59 +01:00
parent 532904e43d
commit 86a5213473

View File

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