aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Jarosch <dennis.jarosch@gmx.de>2011-02-10 08:51:02 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-02-13 09:54:45 +0100
commit1db2e14bed379bbf1c5f3140a903437b146c5cce (patch)
treebfa1d36f17e3686de42bd48e8df09aca9c0e6652
parenta12ed738095819beab0b42c6c8a1566c063bb79e (diff)
downloadxorg-input-kobomultitouch-1db2e14bed379bbf1c5f3140a903437b146c5cce.tar.gz
xorg-input-kobomultitouch-1db2e14bed379bbf1c5f3140a903437b146c5cce.tar.bz2
xorg-input-kobomultitouch-1db2e14bed379bbf1c5f3140a903437b146c5cce.zip
Fix event flood in tap handling
Fixes the bug that flooded the X server with button events, by initializing the Gestures struct before handling taps. Signed-off-by: Dennis Jarosch <dennis.jarosch@gmx.de> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--src/gestures.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gestures.c b/src/gestures.c
index db3fc83..735e77c 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -194,6 +194,7 @@ void extract_gestures(struct Gestures *gs, struct MTouch* mt)
*/
void extract_delayed_gestures(struct Gestures *gs, struct MTouch* mt)
{
+ memset(gs, 0, sizeof(struct Gestures));
mt->mem.wait = 0;
if (mt->mem.tpdown < mt->mem.tpup) {