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>
This commit is contained in:
parent
8456625d64
commit
16eb4f2a7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user