[gtk+/multitouch: 102/121] gtk: rewrite touch events wrt the window group too
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch: 102/121] gtk: rewrite touch events wrt the window group too
- Date: Thu, 12 Jan 2012 14:25:40 +0000 (UTC)
commit 6a646de8d8752072cb00f591a1f571aaa3da11db
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 29 00:22:02 2011 +0100
gtk: rewrite touch events wrt the window group too
Likewise to pointer events, have touch events during a device
grab with owner_events=TRUE be delivered normally as long as
the widget pertains to the same window group.
gtk/gtkmain.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index db8ff82..ff7b543 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1331,11 +1331,14 @@ rewrite_event_for_window (GdkEvent *event,
case GDK_2BUTTON_PRESS:
case GDK_3BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
+ case GDK_TOUCH_PRESS:
+ case GDK_TOUCH_RELEASE:
rewrite_events_translate (event->any.window,
new_window,
&event->button.x, &event->button.y);
break;
case GDK_MOTION_NOTIFY:
+ case GDK_TOUCH_MOTION:
rewrite_events_translate (event->any.window,
new_window,
&event->motion.x, &event->motion.y);
@@ -1385,6 +1388,9 @@ rewrite_event_for_grabs (GdkEvent *event)
case GDK_PROXIMITY_OUT:
case GDK_KEY_PRESS:
case GDK_KEY_RELEASE:
+ case GDK_TOUCH_PRESS:
+ case GDK_TOUCH_RELEASE:
+ case GDK_TOUCH_MOTION:
display = gdk_window_get_display (event->any.window);
device = gdk_event_get_device (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]