diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-25 10:38:33 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-25 10:38:33 +0930 |
commit | 096117cf023dc92dcadc91677931fc6ad1feb4a0 (patch) | |
tree | 735ef8f60c902eb1bab6a40f50ade34e886933b0 /Xi | |
parent | ba557e0263eee0b75847c596f31c71492611b22c (diff) |
Xi: reset motion history when swapping device classes.
This isn't really the correct solution, but it'll have to do until I figured
out how to transfer the history over correctly.
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index a48ba115d..f13959fc9 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -574,6 +574,8 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to) memcpy(v, from->valuator, sizeof(ValuatorClassRec)); v->motion = NULL; AllocateMotionHistory(to); /*XXX should be copied somehow */ + v->first_motion = 0; + v->last_motion = 0; v->axes = (AxisInfoPtr)&v[1]; memcpy(v->axes, from->valuator->axes, v->numAxes * sizeof(AxisInfo)); |