diff options
author | Daniel Stone <daniel@fooishbar.org> | 2011-03-02 17:22:59 +0000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-09-29 12:23:51 +1000 |
commit | 6a6b4eb05c7822860e2362fa9b8441fc67055e27 (patch) | |
tree | 7cd264527f6813015ae44c2825607e62db973694 | |
parent | 7e919ef5bfa94d51a06eefb150ab947bdbfb6885 (diff) |
Input: Store clipped absolute axes in the mask
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@fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | dix/getevents.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index be2840c47..d9c5c0df5 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -721,6 +721,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]); } } } |