summaryrefslogtreecommitdiff
path: root/Xext/xtest.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-11-22 17:30:14 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-11-22 17:30:14 +1030
commitf9269bebae27bbc9d0e03e02943166b83946623d (patch)
tree8bba08ee9391ec60613a58cf8941e65f18e82d58 /Xext/xtest.c
parent9ed43eff48201520797f89a12bb3b2f5819bd99f (diff)
DeviceIntRec: move lastx/lasty from valuator into DeviceIntRec.
We free the ValuatorClassRec quite regularly. If a SIGIO is handled while we're swapping device classes, we can bring the server down when we try to access lastx/lasty of the master device.
Diffstat (limited to 'Xext/xtest.c')
-rw-r--r--Xext/xtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index bd203b193..371be4e9e 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -444,8 +444,8 @@ ProcXTestFakeInput(client)
(dev, 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;
+ dev->lastx = ev->u.keyButtonPointer.rootX;
+ dev->lasty = ev->u.keyButtonPointer.rootY;
break;
case ButtonPress:
case ButtonRelease: