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 <peter.hutterer@who-t.net>
This commit is contained in:
Benjamin Otte
2012-02-06 00:45:23 +01:00
committed by Peter Hutterer
parent 3822705204
commit da0d20d0fd

View File

@@ -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