From 743d18c0f8655de44b1e7c96e040847a900acc34 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 1 Jun 2016 07:01:37 -0400 Subject: [PATCH] scrolled window: Remove trackpoint heuristics This is now done in GDK, so we can just use the input type here. https://bugzilla.gnome.org/show_bug.cgi?id=767100 --- gtk/gtkscrolledwindow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index b6100d63b6..741a6bdb5e 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1365,8 +1365,7 @@ captured_event_cb (GtkWidget *widget, } else if (input_source == GDK_SOURCE_PEN || input_source == GDK_SOURCE_ERASER || - (device_name != NULL && strstr (device_name, "TrackPoint")) || - (device_name != NULL && strstr (device_name, "DualPoint Stick"))) + input_source == GDK_SOURCE_TRACKPOINT) { indicator_set_over (&priv->hindicator, TRUE); indicator_set_over (&priv->vindicator, TRUE);