summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-09-10 10:33:01 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-25 13:04:40 +1000
commitca93073692a4b8fab32945d76a1d1d16a435c800 (patch)
tree95e6cbb759030311e256da3ee0a96b4e005f8c93 /src
parent053f56d3086082f8335cef906baba23ef8482a73 (diff)
Use a local variable for history_size.
Field was removed from InputInfoRec in ABI and the server hasn't actually accessed this field for quite a while. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/acecad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/acecad.c b/src/acecad.c
index 2cad693..e81c141 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -615,6 +615,7 @@ DeviceInit (DeviceIntPtr dev)
InputInfoPtr local = (InputInfoPtr) dev->public.devicePrivate;
AceCadPrivatePtr priv = (AceCadPrivatePtr) (local->private);
unsigned char map[] = {0, 1, 2, 3};
+ int history_size;
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
Atom btn_labels[3];
Atom axes_labels[3];
@@ -660,6 +661,7 @@ DeviceInit (DeviceIntPtr dev)
return !Success;
}
+ history_size = xf86SetIntOption(local->options , "HistorySize", 0);
/* 3 axes */
if (InitValuatorClassDeviceStruct (dev, 3,
@@ -669,7 +671,7 @@ DeviceInit (DeviceIntPtr dev)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
xf86GetMotionEvents,
#endif
- local->history_size,
+ history_size,
((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity)
== FALSE)
{