mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
Drop HandleTouches - it's a noop
With the removal of touch events in 0a4cf80a00, this function is a noop. It
merely counted the number of touches but discarded the result. And
UpdateTouchState does the update anyway.
https://bugs.freedesktop.org/show_bug.cgi?id=102209
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -2961,24 +2961,6 @@ UpdateTouchState(InputInfoPtr pInfo, struct SynapticsHwState *hw)
|
||||
SynapticsResetTouchHwState(hw, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw)
|
||||
{
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
int new_active_touches = priv->num_active_touches;
|
||||
int i;
|
||||
|
||||
/* Count new number of active touches */
|
||||
for (i = 0; i < hw->num_mt_mask; i++) {
|
||||
if (hw->slot_state[i] == SLOTSTATE_OPEN)
|
||||
new_active_touches++;
|
||||
else if (hw->slot_state[i] == SLOTSTATE_CLOSE)
|
||||
new_active_touches--;
|
||||
}
|
||||
|
||||
UpdateTouchState(pInfo, hw);
|
||||
}
|
||||
|
||||
static void
|
||||
filter_jitter(SynapticsPrivate * priv, int *x, int *y)
|
||||
{
|
||||
@@ -3175,7 +3157,7 @@ HandleState(InputInfoPtr pInfo, struct SynapticsHwState *hw, CARD32 now,
|
||||
post_button_click(pInfo, 1);
|
||||
}
|
||||
|
||||
HandleTouches(pInfo, hw);
|
||||
UpdateTouchState(pInfo, hw);
|
||||
|
||||
/* Save old values of some state variables */
|
||||
priv->finger_state = finger;
|
||||
|
||||
Reference in New Issue
Block a user