From 96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 18 Mar 2015 11:44:34 -0500 Subject: Ingore touch events for 0,0 Change-Id: I63eb29d7a39956d92cb5da81c5cb4405930d43ae --- minuitwrp/events.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'minuitwrp') diff --git a/minuitwrp/events.c b/minuitwrp/events.c index 0309a9a21..5df5338b2 100644 --- a/minuitwrp/events.c +++ b/minuitwrp/events.c @@ -675,6 +675,12 @@ static int vk_modify(struct ev *e, struct input_event *ev) // If we have nothing useful to report, skip it if (x == -1 || y == -1) return 1; + // Special case, we'll ignore touches on 0,0 because it usually means + // that we received extra data after our last sync and x and y were + // reset to 0. We should not be using 0,0 anyway. + if (x == 0 && y == 0) + return 1; + // On first touch, see if we're at a virtual key if (downX == -1) { -- cgit v1.2.3