mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 07:38:22 +02:00
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:
parent
f9269bebae
commit
691da03131
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue