[PATCH] dix: fix typo in setting valuator modes (#21548)
Peter Hutterer
peter.hutterer at who-t.net
Thu Nov 11 14:33:25 PST 2010
X.Org Bug 31548 <http://bugs.freedesktop.org/show_bug.cgi?id=31548>
---
dix/devices.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dix/devices.c b/dix/devices.c
index a4c8e76..708860a 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;
}
}
--
1.7.3.2
More information about the xorg-devel
mailing list