summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2013-05-25 01:06:16 +0200
committerJason Gerecke <killertofu@gmail.com>2013-07-10 14:09:27 -0700
commitd0a5c68b2582fc6bdcee1d949913f78c0651b1a6 (patch)
tree6a1527bb64e2cbcb4cb859a91f460352179b7091
parent8e5b56e7a461c416d5b29f338bbd749626452b5d (diff)
Transform touch events just like all other events
Transform touch coordinates in the same way as other events coming from the wacom driver otherwise setting for exmaple the Wacom Rotation property has no effect Signed-off-by: Sjoerd Simons <sjoerd@greynoise.nl> Acked-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r--src/wcmTouchFilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wcmTouchFilter.c b/src/wcmTouchFilter.c
index 07603af..b1b1685 100644
--- a/src/wcmTouchFilter.c
+++ b/src/wcmTouchFilter.c
@@ -112,6 +112,8 @@ wcmSendTouchEvent(WacomDevicePtr priv, WacomChannelPtr channel)
WacomDeviceState oldstate = channel->valid.states[1];
int type = -1;
+ wcmRotateAndScaleCoordinates (priv->pInfo, &state.x, &state.y);
+
valuator_mask_set(mask, 0, state.x);
valuator_mask_set(mask, 1, state.y);