summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/synaptics.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index c7ba9ad..1df1ca7 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2962,24 +2962,6 @@ UpdateTouchState(InputInfoPtr pInfo, struct SynapticsHwState *hw)
}
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)
{
SynapticsParameters *para = &priv->synpara;
@@ -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;