summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-15 10:29:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-15 10:36:30 +1000
commit35ff5cd26eb7564fefebf238e30b8d43cbb4dc25 (patch)
treebccdbf6b0c3b6ddd7553b374636ba95c10e8216e /dix
parent975bf60a82f863e3bdc36fc3f8201b48a4d1e6f7 (diff)
dix: fix wrong raw valuator copy
internal events keep valuator data at the index for the valuator, not like the wire events that start with first_valuator. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/getevents.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 13e7576a8..a4210739f 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -155,10 +155,9 @@ set_raw_valuators(RawDeviceEvent *event, int first, int num, int *valuators, int
{
int i;
for (i = first; i < first + num; i++)
- {
SetBit(event->valuators.mask, i);
- data[i] = valuators[i - first];
- }
+
+ memcpy(&data[first], valuators, num * sizeof(uint32_t));
}