xi2: Remove touchscreen heuristics
It doesn't make sense to consider a device a touchscreen if it doesn't have any touch classes. Even if it has 'touch' in its name. https://bugzilla.gnome.org/show_bug.cgi?id=673440
This commit is contained in:
@ -331,10 +331,6 @@ create_device (GdkDeviceManager *device_manager,
|
|||||||
input_source = GDK_SOURCE_ERASER;
|
input_source = GDK_SOURCE_ERASER;
|
||||||
else if (strstr (tmp_name, "cursor"))
|
else if (strstr (tmp_name, "cursor"))
|
||||||
input_source = GDK_SOURCE_CURSOR;
|
input_source = GDK_SOURCE_CURSOR;
|
||||||
else if (strstr (tmp_name, "finger") ||
|
|
||||||
(strstr (tmp_name, "touch") &&
|
|
||||||
!strstr (tmp_name, "touchpad")))
|
|
||||||
input_source = GDK_SOURCE_TOUCHSCREEN;
|
|
||||||
else if (strstr (tmp_name, "wacom") ||
|
else if (strstr (tmp_name, "wacom") ||
|
||||||
strstr (tmp_name, "pen"))
|
strstr (tmp_name, "pen"))
|
||||||
input_source = GDK_SOURCE_PEN;
|
input_source = GDK_SOURCE_PEN;
|
||||||
|
|||||||
Reference in New Issue
Block a user