summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xf86MuTouch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c
index 82c2a25..2d5cdb0 100644
--- a/src/xf86MuTouch.c
+++ b/src/xf86MuTouch.c
@@ -426,9 +426,9 @@ xf86MuTReadInput(LocalDevicePtr local)
* or we will feed X with quite bogus event positions.
*/
if (priv->x_inverted)
- cur_x = priv->max_x - cur_x;
+ cur_x = priv->max_x - cur_x + priv->min_x;
if (priv->y_inverted)
- cur_y = priv->max_y - cur_y;
+ cur_y = priv->max_y - cur_y + priv->min_y;
xf86PostMotionEvent(local_to_use->dev, TRUE, 0, 2, cur_x, cur_y);
/*