]> Pileus Git - ~andy/gtk/commitdiff
xi2: Remove touchscreen heuristics
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Apr 2012 00:00:35 +0000 (20:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Apr 2012 00:00:35 +0000 (20:00 -0400)
It doesn't make sense to consider a device a touchscreen if it
doesn't have any touch classes. Even if it has 'touch' in its
name.
https://bugzilla.gnome.org/show_bug.cgi?id=673440

gdk/x11/gdkdevicemanager-xi2.c

index 0ae7117dfe5d6816545bddb55df74fddf77518a2..c15e82d8e263b6403dd0392e4da5ecb17f76c84f 100644 (file)
@@ -331,10 +331,6 @@ create_device (GdkDeviceManager *device_manager,
         input_source = GDK_SOURCE_ERASER;
       else if (strstr (tmp_name, "cursor"))
         input_source = GDK_SOURCE_CURSOR;
-      else if (strstr (tmp_name, "finger") ||
-               (strstr (tmp_name, "touch") &&
-                !strstr (tmp_name, "touchpad")))
-        input_source = GDK_SOURCE_TOUCHSCREEN;
       else if (strstr (tmp_name, "wacom") ||
                strstr (tmp_name, "pen"))
         input_source = GDK_SOURCE_PEN;