Ingore touch events for 0,0
Change-Id: I63eb29d7a39956d92cb5da81c5cb4405930d43ae
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index 0309a9a..5df5338 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -675,6 +675,12 @@
// 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)
{