[gtk+] xi2: Remove touchscreen heuristics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] xi2: Remove touchscreen heuristics
- Date: Sat, 7 Apr 2012 00:01:00 +0000 (UTC)
commit 432f0151eb2a0ce211e2ac58113ce8e323832a1c
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 6 20:00:35 2012 -0400
xi2: Remove touchscreen heuristics
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 | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 0ae7117..c15e82d 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]