[gtk+/xi2-playground: 2/8] Make GdkDeviceManagerXI2 recognize touchscreen devices.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2-playground: 2/8] Make GdkDeviceManagerXI2 recognize touchscreen devices.
- Date: Fri, 2 Jul 2010 12:07:04 +0000 (UTC)
commit e3a3ba57f07d93ce11e235f0dfd21d46a01f2d29
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 57eb321..e519cfa 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -205,6 +205,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]