[PATCH synaptics 01/17] eventcomm: add a missing break statement

Peter Hutterer peter.hutterer at who-t.net
Sun Mar 20 19:08:18 PDT 2011


If the EV_SYN wasn't SYN_REPORT, we'd fall through to key event processing,
which almost certainly won't do what we want and/or need.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/eventcomm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index d394d3f..15f9d2d 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -340,6 +340,7 @@ EventReadHwState(InputInfoPtr pInfo,
 		*hwRet = *hw;
 		return TRUE;
 	    }
+	    break;
 	case EV_KEY:
 	    v = (ev.value ? TRUE : FALSE);
 	    switch (ev.code) {
-- 
1.7.4



More information about the xorg-devel mailing list