[PATCH 08/27] Input: Store clipped absolute axes in the mask

Daniel Stone daniel at fooishbar.org
Fri Jun 3 07:59:44 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>
---
 dix/getevents.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index 61ff51f..453ddd9 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -734,6 +734,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