[PATCH 07/28] Input: Store clipped absolute axes in the mask

Daniel Stone daniel at fooishbar.org
Thu Jun 9 10:17:15 PDT 2011


Change moveAbsolute to be more symmetric with moveRelative by storing a
clipped axis value back in the mask, rather than just in
dev->last.valuators.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/getevents.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index d610577..adc3250 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -740,6 +740,7 @@ moveAbsolute(DeviceIntPtr dev, int *x, int *y, ValuatorMask *mask)
         {
             dev->last.valuators[i] = valuator_mask_get(mask, i);
             clipAxis(dev, i, &dev->last.valuators[i]);
+            valuator_mask_set(mask, i, dev->last.valuators[i]);
         }
     }
 }
-- 
1.7.5.3



More information about the xorg-devel mailing list