event: Fix copying touch events
authorBastien Nocera <hadess@hadess.net>
Thu, 3 May 2012 16:56:45 +0000 (18:56 +0200)
committerBastien Nocera <hadess@hadess.net>
Thu, 3 May 2012 17:32:07 +0000 (19:32 +0200)
We were trying to copy motion axes instead of touch ones.

https://bugzilla.gnome.org/show_bug.cgi?id=675371

clutter/clutter-event.c

index 92c0d87..f964707 100644 (file)
@@ -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;