On Wed, Mar 24, 2010 at 03:21:02PM -0700, Ping Cheng wrote: > Out-prox events don't send reliable motion events. So, don't rotate > those coordinates. > > Signed-off-by: Ping Cheng <[email protected]>
> From 22a89153d384744eead24cc907a7c4cf1070e6f9 Mon Sep 17 00:00:00 2001 > From: Ping Cheng <[email protected]> > Date: Wed, 24 Mar 2010 15:14:01 -0700 > Subject: [PATCH] Call wcmRotateCoordinates only when we get real motion events > > Out-prox events don't send reliable motion events. So, don't rotate > those coordinates. > > Signed-off-by: Ping Cheng <[email protected]> > --- > src/wcmCommon.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/src/wcmCommon.c b/src/wcmCommon.c > index cb8460c..664d8e5 100644 > --- a/src/wcmCommon.c > +++ b/src/wcmCommon.c > @@ -792,7 +792,8 @@ void wcmSendEvents(LocalDevicePtr local, const > WacomDeviceState* ds) > x, y, z, is_button ? "true" : "false", buttons, > tx, ty, wheel, rot, throttle); > > - wcmRotateCoordinates(local, &x, &y); > + if (ds->proximity) > + wcmRotateCoordinates(local, &x, &y); > > if (IsCursor(priv)) > { > -- > 1.6.6.1 applied, thanks for the patch. Cheers, Peter ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
