diff options
author | Jaroslaw Siebert <y0g1@poczta.wp.pl> | 2007-12-28 16:13:09 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-12-28 16:13:09 +1030 |
commit | 0e04b7142a04fa5e4af57a8056c6010ba49c1359 (patch) | |
tree | 93e15bf1c02edf428611a79b0e306925455697f1 | |
parent | e4071358e3047127fe0476cab3e9fb63e180e940 (diff) |
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 <https://bugs.freedesktop.org/attachment.cgi?id=13248>
-rw-r--r-- | src/xf86Elo.c | 4 |
1 files 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", |