[clutter/clutter-1.16] ClutterEvent: preserve extended state across clutter_event_copy()



commit 5c44a5e6f49e1697fffb92e69072542c1d2cf315
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Thu Sep 19 16:38:53 2013 +0200

    ClutterEvent: preserve extended state across clutter_event_copy()
    
    We're going nowhere if we don't copy these, because the final
    delivered event is a copy of the event generated by the backend.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708383

 clutter/clutter-event.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c
index 2609f8f..569c0db 100644
--- a/clutter/clutter-event.c
+++ b/clutter/clutter-event.c
@@ -1207,6 +1207,10 @@ clutter_event_copy (const ClutterEvent *event)
       new_real_event->delta_x = real_event->delta_x;
       new_real_event->delta_y = real_event->delta_y;
       new_real_event->is_pointer_emulated = real_event->is_pointer_emulated;
+      new_real_event->base_state = real_event->base_state;
+      new_real_event->button_state = real_event->button_state;
+      new_real_event->latched_state = real_event->latched_state;
+      new_real_event->locked_state = real_event->locked_state;
     }
 
   device = clutter_event_get_device (event);



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