summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-08-22 14:58:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-08-26 11:04:42 +1000
commit7b66f16c2a30deb9ab50b3111b9b2611ffab27d6 (patch)
tree946bfd621a652a8184ad87303d7b5582d427c1e2
parent0b26f2592cbe28f35b96a5422fda4bc6298930cb (diff)
downloadlibinput-7b66f16c2a30deb9ab50b3111b9b2611ffab27d6.tar.gz
touchpad: mark a intentional switch case fallthrough as such
Both motion and timeout expiry transition into the TOUCH_2_HOLD state, but only for motion do we need to cancel the current timeout. Found by Coverity. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev-mt-touchpad-tap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
index 64801a81..fae8f5e8 100644
--- a/src/evdev-mt-touchpad-tap.c
+++ b/src/evdev-mt-touchpad-tap.c
@@ -253,6 +253,7 @@ tp_tap_touch2_handle_event(struct tp_dispatch *tp,
break;
case TAP_EVENT_MOTION:
tp_tap_clear_timer(tp);
+ /* fallthrough */
case TAP_EVENT_TIMEOUT:
tp->tap.state = TAP_STATE_TOUCH_2_HOLD;
break;