diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-07 09:53:35 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-20 07:48:46 +1000 |
commit | 16eb4f2a7b67ee169785973f9e0a3773e13fdea6 (patch) | |
tree | 28cc322e45cec12ac02fac162c8a23581ae66f00 /Xi/xiwarppointer.c | |
parent | 8456625d64bb0013a496f3b56ea3aa20cf7a6142 (diff) |
Xi: reset remainders when warping the device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Simon Thum <simon.thum@gmx.de>
Diffstat (limited to 'Xi/xiwarppointer.c')
-rw-r--r-- | Xi/xiwarppointer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c index 7276e6faf..c01b115f3 100644 --- a/Xi/xiwarppointer.c +++ b/Xi/xiwarppointer.c @@ -192,6 +192,8 @@ ProcXIWarpPointer(ClientPtr client) /* if we don't update the device, we get a jump next time it moves */ pDev->last.valuators[0] = x; pDev->last.valuators[1] = y; + pDev->last.remainder[0] = 0; + pDev->last.remainder[1] = 0; miPointerUpdateSprite(pDev); /* FIXME: XWarpPointer is supposed to generate an event. It doesn't do it |