[gtk+/xi2-playground: 2/15] Make GdkDeviceManagerXI2 recognize touchscreen devices.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2-playground: 2/15] Make GdkDeviceManagerXI2 recognize touchscreen devices.
- Date: Tue, 8 Jun 2010 17:42:03 +0000 (UTC)
commit 22421d33ca1c8da3aabf21967ef5e44b6823185d
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 4 14:13:21 2010 +0200
Make GdkDeviceManagerXI2 recognize touchscreen devices.
gdk/x11/gdkdevicemanager-xi2.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 9915a3a..9d41df3 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -203,6 +203,9 @@ create_device (GdkDeviceManager *device_manager,
else if (strstr (tmp_name, "wacom") ||
strstr (tmp_name, "pen"))
input_source = GDK_SOURCE_PEN;
+ else if (strstr (tmp_name, "touchscreen") ||
+ strstr (tmp_name, "touchpoint"))
+ input_source = GDK_SOURCE_TOUCH;
else
input_source = GDK_SOURCE_MOUSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]