summaryrefslogtreecommitdiff
path: root/Xi/warpdevp.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 /Xi/warpdevp.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 'Xi/warpdevp.c')
-rw-r--r--Xi/warpdevp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/warpdevp.c b/Xi/warpdevp.c
index a675bdcd1..85fa7a902 100644
--- a/Xi/warpdevp.c
+++ b/Xi/warpdevp.c
@@ -176,8 +176,8 @@ ProcXWarpDevicePointer(ClientPtr client)
}
/* if we don't update the device, we get a jump next time it moves */
- pDev->valuator->lastx = x;
- pDev->valuator->lasty = x;
+ pDev->lastx = x;
+ pDev->lasty = x;
miPointerUpdateSprite(pDev);
/* FIXME: XWarpPointer is supposed to generate an event. It doesn't do it