From 36baf9207ed87ec669014a51385b6194cccda3a5 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 26 Mar 2015 19:46:56 +0100 Subject: [PATCH] scrolledwindow: Extend trackpoint heuristic to ALPS trackpoints These have a different characteristic device name, look for it too in order to enable trackpoint features. --- gtk/gtkscrolledwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index a9eabefe11..3bfbb3b33a 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1104,7 +1104,8 @@ captured_event_cb (GtkWidget *widget, indicator_set_over (&priv->hindicator, FALSE); indicator_set_over (&priv->vindicator, FALSE); } - else if (strstr (gdk_device_get_name (source_device), "TrackPoint")) + else if (strstr (gdk_device_get_name (source_device), "TrackPoint") || + strstr (gdk_device_get_name (source_device), "DualPoint Stick")) { indicator_set_over (&priv->hindicator, TRUE); indicator_set_over (&priv->vindicator, TRUE);