summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-03-18 17:44:34 +0100
committerDees Troy <dees_troy@teamw.in>2015-03-19 17:53:12 +0100
commit96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9 (patch)
treeda58879c4645b60f1a3fd8e8ecd362acadb33f40
parentFix non-working "Do Not Install" button on "installsu" page. (diff)
downloadandroid_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar.gz
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar.bz2
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar.lz
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar.xz
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.tar.zst
android_bootable_recovery-96bc6dddc60f7024ba1d7dff2a45e2a5a8f04fd9.zip
-rw-r--r--minuitwrp/events.c6
1 files changed, 6 insertions, 0 deletions
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)
{