summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-04-26 09:27:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-04-26 12:54:08 +1000
commitf0c2f1d82a21de315a0088dd28ffeb394cf32c8e (patch)
treec748517b9d467aeeda4efbc6c3ee98a4e11510e7 /src
parent9ecf505c6473c65cd850a58b1b6eeb86f7d390e6 (diff)
Init num_touches to 0 on start
We implicitly rely on this already since we calloc the struct. Do it expliclity on DeviceOn(). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src')
-rw-r--r--src/eventcomm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 5707e38..741f988 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -150,6 +150,7 @@ InitializeTouch(InputInfoPtr pInfo)
}
proto_data->cur_slot = proto_data->mtdev->caps.slot.value;
+ proto_data->num_touches = 0;
proto_data->last_mt_vals = calloc(priv->num_slots,
sizeof(ValuatorMask *));