From 691da031319dc59b9496101358c267f317abfd1e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 22 Nov 2007 17:44:39 +1030 Subject: [PATCH] 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. --- Xi/exevents.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Xi/exevents.c b/Xi/exevents.c index d72f00ac2..8c8cdfdd4 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -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));