x11: Add "pointer" to the is-not-a-touchscreen device name checks

Commit 1266d15c4 also broke Xwayland, as it does the same trick
than VMWare pointers. Let's extend the heuristic to check for "pointer"
in the device name, what can possibly go wrong...

https://bugzilla.gnome.org/show_bug.cgi?id=757358
This commit is contained in:
Carlos Garnacho
2015-11-17 15:36:08 +01:00
parent ed692f9a0b
commit 1d3f93f277

View File

@@ -427,6 +427,7 @@ create_device (GdkDeviceManager *device_manager,
strstr (tmp_name, "pen"))
input_source = GDK_SOURCE_PEN;
else if (!strstr (tmp_name, "mouse") &&
!strstr (tmp_name, "pointer") &&
has_abs_axes (display, dev->classes, dev->num_classes))
input_source = GDK_SOURCE_TOUCHSCREEN;
else