mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-21 17:30:22 +01:00
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>
This commit is contained in:
parent
0b26f2592c
commit
7b66f16c2a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue