[PATCH xi2.1 2/2] Transform direct touch event coordinates

Chase Douglas chase.douglas at canonical.com
Fri Jan 14 08:22:45 PST 2011


Should be squashed into xi2.1 commit.

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 dix/getevents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index c2663d2..83e4754 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1376,6 +1376,8 @@ GetTouchEvents(EventList *events, DeviceIntPtr pDev, unsigned int touchid,
         y = rescaleValuatorAxis(y, 0.0, &y_frac,
                                 (AxisInfoPtr)(t->axes + t->y_axis),
                                 NULL, scr->height);
+
+        transformAbsolute(pDev, &mask, &x, &y);
     }
     else {
         x = pDev->spriteInfo->sprite->hotPhys.x;
-- 
1.7.2.3



More information about the xorg-devel mailing list