[gtk+] x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT
- Date: Wed, 1 Jun 2016 13:31:39 +0000 (UTC)
commit 660c8b8f9bb35bd5d2819f5506b609f289382efd
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 1 06:58:43 2016 -0400
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
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 d75f4ab..6145877 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]