forked from AuroraMiddleware/gtk
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:
parent
a9f14846e4
commit
660c8b8f9b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user