summaryrefslogtreecommitdiff
path: root/Xext/xtest.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-03-01 09:51:20 +1030
committerPeter Hutterer <whot@hyena.localdomain>2007-03-01 09:59:37 +1030
commit68c64ad7b1eea79c786b5a7f3459076780163a47 (patch)
treec0cd588d379d2af0bccd5219a7222ee581e2d52c /Xext/xtest.c
parent8b245758845523d5f8f017bb9d0e9aa57b616c28 (diff)
Xext: Update device's lastx/lasty when sending a motion event with XTest.
Diffstat (limited to 'Xext/xtest.c')
-rw-r--r--Xext/xtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index c9b511e69..94d8974b6 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -441,6 +441,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: