summaryrefslogtreecommitdiff
path: root/src/ws.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@openbsd.org>2009-11-25 18:14:23 +0000
committerMatthieu Herrb <matthieu@openbsd.org>2009-11-25 18:14:23 +0000
commit0cdac07611a692c44020e22f2c2a076e34330171 (patch)
tree81dc614c89c3f4fd237be7b4c37886e4f112e51b /src/ws.c
parent91a59ddf6f8434ec4ed8296696fe475ffb3f681b (diff)
No need to maintain a local cache of the pointer position anymore.
Diffstat (limited to 'src/ws.c')
-rw-r--r--src/ws.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ws.c b/src/ws.c
index f90482f..c39db76 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -61,7 +61,6 @@ typedef struct WSDevice {
int type; /* ws device type */
unsigned int buttons; /* # of buttons */
unsigned int lastButtons; /* last state of buttons */
- int x, y; /* current abs coordinates */
int min_x, max_x, min_y, max_y; /* coord space */
int swap_axes;
int raw;
@@ -482,9 +481,6 @@ wsDeviceInit(DeviceIntPtr pWS)
xf86MotionHistoryAllocate(pInfo);
AssignTypeAndName(pWS, pInfo->atom, pInfo->name);
pWS->public.on = FALSE;
- /* This should correspond to the center of the screen */
- priv->x = (priv->max_x - priv->min_x) / 2;
- priv->y = (priv->max_y - priv->min_y) / 2;
if (wsOpen(pInfo) != Success) {
return !Success;
}
@@ -706,13 +702,11 @@ wsReadInput(InputInfoPtr pInfo)
/* absolute position event */
DBG(3, ErrorF("postMotionEvent X %d\n", ax));
xf86PostMotionEvent(pInfo->dev, 1, 0, 1, ax);
- priv->x = ax;
}
if (ay) {
/* absolute position event */
DBG(3, ErrorF("postMotionEvent y %d\n", ay));
xf86PostMotionEvent(pInfo->dev, 1, 1, 1, ay);
- priv->y = ay;
}
++event;
}