Xi: allocate motion history for master device.

We're still missing out on the actual content of the history but at least this
way we don't segfault.
This commit is contained in:
Peter Hutterer 2007-11-22 17:44:39 +10:30
parent f9269bebae
commit 691da03131

View File

@ -338,6 +338,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
FatalError("[Xi] no memory for class shift.\n");
memcpy(v, from->valuator, sizeof(ValuatorClassRec));
v->motion = NULL;
AllocateMotionHistory(to); /*XXX should be copied somehow */
v->axes = (AxisInfoPtr)&v[1];
memcpy(v->axes, from->valuator->axes, v->numAxes * sizeof(AxisInfo));