forked from AuroraMiddleware/gtk
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:
parent
1f5537c689
commit
432f0151eb
@ -331,10 +331,6 @@ create_device (GdkDeviceManager *device_manager,
|
||||
input_source = GDK_SOURCE_ERASER;
|
||||
else if (strstr (tmp_name, "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") ||
|
||||
strstr (tmp_name, "pen"))
|
||||
input_source = GDK_SOURCE_PEN;
|
||||
|
Loading…
Reference in New Issue
Block a user