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
This commit is contained in:
Giovanni Campagna 2013-09-19 16:38:53 +02:00
parent d72f3a3509
commit 5c44a5e6f4

View File

@ -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);