Commit 660c8b8f authored by Matthias Clasen's avatar Matthias Clasen

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
parent a9f14846
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment