scrolledwindow: Extend trackpoint heuristic to ALPS trackpoints

These have a different characteristic device name, look for it too
in order to enable trackpoint features.
This commit is contained in:
Hans de Goede 2015-03-26 19:46:56 +01:00 committed by Carlos Garnacho
parent 86720b014e
commit 36baf9207e

View File

@ -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);