From 4dbef9a98ed5956838f7b7f550d0cdc65d98aa97 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 3 May 2012 18:56:45 +0200 Subject: [PATCH 1/2] event: Fix copying touch events We were trying to copy motion axes instead of touch ones. https://bugzilla.gnome.org/show_bug.cgi?id=675371 --- clutter/clutter-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c index c878b5e..abd2fb5 100644 --- a/clutter/clutter-event.c +++ b/clutter/clutter-event.c @@ -1174,7 +1174,7 @@ clutter_event_copy (const ClutterEvent *event) case CLUTTER_TOUCH_END: case CLUTTER_TOUCH_CANCEL: if (event->touch.axes != NULL) - new_event->touch.axes = g_memdup (event->motion.axes, + new_event->touch.axes = g_memdup (event->touch.axes, sizeof (gdouble) * n_axes); break; -- 1.7.10