summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dix/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/devices.c b/dix/devices.c
index a4c8e76aa..708860ace 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -2592,6 +2592,6 @@ void valuator_set_mode(DeviceIntPtr dev, int axis, int mode)
else {
int i;
for (i = 0; i < dev->valuator->numAxes; i++)
- dev->valuator->axes[axis].mode = mode;
+ dev->valuator->axes[i].mode = mode;
}
}