event: The device setter work on sub-types

Instead of just setting the input device pointer in the private event
data, it should also set the field in the event sub-types, so that
direct access to the structures still works.
This commit is contained in:
Emmanuele Bassi 2011-02-01 14:44:22 +00:00
parent 8fc462269d
commit a573ad05c9

View File

@ -550,8 +550,6 @@ clutter_event_set_device (ClutterEvent *event,
ClutterEventPrivate *real_event = (ClutterEventPrivate *) event;
real_event->device = device;
return;
}
switch (event->type)