diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-06-01 06:58:43 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-06-01 09:31:18 -0400 |
commit | 660c8b8f9bb35bd5d2819f5506b609f289382efd (patch) | |
tree | c1149ee999a3f186441de7a7fcb15d3ef5afabb7 | |
parent | a9f14846e40ee67abb9d4085ca62db42803fe20f (diff) | |
download | gtk+-660c8b8f9bb35bd5d2819f5506b609f289382efd.tar.gz |
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
-rw-r--r-- | gdk/x11/gdkdevicemanager-xi2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index d75f4ab533..61458772b1 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -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; |