[PATCH evdev 1/8] initialize pEvdev->slot_state to SLOTSTATE_EMPTY

Benjamin Tissoires benjamin.tissoires at gmail.com
Wed Jan 9 10:21:15 PST 2013


This prevents the creation of a touch in case no multitouch event came
before the very first EV_SYN.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
---
 src/evdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/evdev.c b/src/evdev.c
index 619bce6..27b0e76 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2493,6 +2493,7 @@ EvdevPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
 
 #ifdef MULTITOUCH
     pEvdev->cur_slot = -1;
+    pEvdev->slot_state = SLOTSTATE_EMPTY;
 #endif
 
     /*
-- 
1.8.0.2



More information about the xorg-devel mailing list