From 0e04b7142a04fa5e4af57a8056c6010ba49c1359 Mon Sep 17 00:00:00 2001 From: Jaroslaw Siebert Date: Fri, 28 Dec 2007 16:13:09 +1030 Subject: Bug #13248: pass the correct coordinates to the DDX. cur_x and cur_y are the packets we get from the deviec, but after scaling the actual coordinates we need to only deal with x and y. This fixes one issue reported Bug #13248. X.Org Bugzilla #13248 --- src/xf86Elo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xf86Elo.c b/src/xf86Elo.c index 3e936af..a068c04 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -858,13 +858,13 @@ xf86EloReadInput(LocalDevicePtr local) * location has changed as DIX assumes this. This is why we always * emit a motion, regardless of the kind of packet processed. */ - xf86PostMotionEvent(local->dev, TRUE, 0, 2, cur_x, cur_y); + xf86PostMotionEvent(local->dev, TRUE, 0, 2, x, y); /* * Emit a button press or release. */ if (state == ELO_PRESS || state == ELO_RELEASE) { - xf86PostButtonEvent(local->dev, TRUE, 1, state == ELO_PRESS, 0, 2, cur_x, cur_y); + xf86PostButtonEvent(local->dev, TRUE, 1, state == ELO_PRESS, 0, 2, x, y); } DBG(3, ErrorF("TouchScreen: x(%d), y(%d), %s\n", -- cgit v1.2.3