From e783c187757b0412f53c8ec555d7f5bf7b10195b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 18 Mar 2011 20:56:51 +1000 Subject: [PATCH] eventcomm: add a missing break statement 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 Reviewed-by: Cyril Brulebois (cherry picked from commit ecf42db47629cadc7a332398a1784bb0acbd6511) --- src/eventcomm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eventcomm.c b/src/eventcomm.c index 1a31c54..7a3959b 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -341,6 +341,7 @@ EventReadHwState(InputInfoPtr pInfo, *hwRet = *hw; return TRUE; } + break; case EV_KEY: v = (ev.value ? TRUE : FALSE); switch (ev.code) {