[gtk+] scrolled window: Remove trackpoint heuristics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolled window: Remove trackpoint heuristics
- Date: Wed, 1 Jun 2016 13:31:44 +0000 (UTC)
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]