[clutter] event: Fix copying touch events



commit 217ff7c8fb359f129011aff08cb97ff8620f479c
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 3 18:56:45 2012 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c
index 92c0d87..f964707 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]