Xext: Update device's lastx/lasty when sending a motion event with XTest.

(cherry picked from commit 68c64ad7b1)
This commit is contained in:
Peter Hutterer 2007-03-01 09:51:20 +10:30 committed by Keith Packard
parent d3c3d31782
commit 4c5837c940

View file

@ -442,6 +442,8 @@ ProcXTestFakeInput(client)
(root->drawable.pScreen,
ev->u.keyButtonPointer.rootX,
ev->u.keyButtonPointer.rootY, FALSE);
dev->valuator->lastx = ev->u.keyButtonPointer.rootX;
dev->valuator->lasty = ev->u.keyButtonPointer.rootY;
break;
case ButtonPress:
case ButtonRelease: