mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
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:
committed by
Peter Hutterer
parent
3822705204
commit
da0d20d0fd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user