From da0d20d0fd5cce3707b54146e54e2df0c697e1b4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 6 Feb 2012 00:45:23 +0100 Subject: eventcomm: Fix initialization code num_mt_axes contains the number of non-x/y multitouch axes, and the valuator mask needs to contains x, y, followed by two empy values for the scroll valuators, followed by the remaining MT axes. https://bugs.freedesktop.org/show_bug.cgi?id=45663 Signed-off-by: Peter Hutterer --- src/eventcomm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index c323f8f..be0f4ee 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -180,8 +180,8 @@ InitializeTouch(InputInfoPtr pInfo) * and Y. */ valuator_mask_set(proto_data->last_mt_vals[i], 0, 0); valuator_mask_set(proto_data->last_mt_vals[i], 1, 0); - for (j = 4; j < priv->num_mt_axes; j++) - valuator_mask_set(proto_data->last_mt_vals[i], j, 0); + for (j = 0; j < priv->num_mt_axes; j++) + valuator_mask_set(proto_data->last_mt_vals[i], 4 + j, 0); } } #endif -- cgit v1.2.3