When getting touch events, the device manager would try
to pass an invalid device to translate_axes().
clutter_event_set_device() will only update event->touch.device
for touch events, not event->motion.device, as used.
Fixes Totem crashing on mouse motion/button press when using
a touchpad.
https://bugzilla.gnome.org/show_bug.cgi?id=675371
GINT_TO_POINTER (xev->deviceid));
clutter_event_set_device (event, device);
- event->touch.axes = translate_axes (event->motion.device,
+ event->touch.axes = translate_axes (event->touch.device,
event->motion.x,
event->motion.y,
stage_x11,
GINT_TO_POINTER (xev->deviceid));
clutter_event_set_device (event, device);
- event->touch.axes = translate_axes (event->motion.device,
+ event->touch.axes = translate_axes (event->touch.device,
event->motion.x,
event->motion.y,
stage_x11,