[gtk+] scrolled window: Remove trackpoint heuristics



commit 743d18c0f8655de44b1e7c96e040847a900acc34
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 1 07:01:37 2016 -0400

    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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index b6100d6..741a6bd 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]