x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT

This uses the same heuristics that are currently used in
GtkScrolledWindow.

https://bugzilla.gnome.org/show_bug.cgi?id=767100
This commit is contained in:
Matthias Clasen 2016-06-01 06:58:43 -04:00
parent a9f14846e4
commit 660c8b8f9b

View File

@ -440,6 +440,9 @@ create_device (GdkDeviceManager *device_manager,
!strstr (tmp_name, "virtualbox usb tablet") &&
has_abs_axes (display, dev->classes, dev->num_classes))
input_source = GDK_SOURCE_TOUCHSCREEN;
else if (strstr (tmp_name, "trackpoint") ||
strstr (tmp_name, "dualpoint stick"))
input_source = GDK_SOURCE_TRACKPOINT;
else
input_source = GDK_SOURCE_MOUSE;