From 35ff5cd26eb7564fefebf238e30b8d43cbb4dc25 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 15 Jul 2009 10:29:46 +1000 Subject: 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 --- dix/getevents.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dix') 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)); } -- cgit v1.2.3