mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-23 07:30:44 +02:00
touchpad: mark two switch fallthroughs with comments
Coverity pointed these out, they're false positives but mark them with comments to make it obvious to the reader. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
bcb6f22d89
commit
0968c067f6
1 changed files with 2 additions and 0 deletions
|
|
@ -823,6 +823,7 @@ tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
|
|||
break;
|
||||
case BUTTON_EVENT_IN_TOP_L:
|
||||
is_top = 1;
|
||||
/* fallthrough */
|
||||
case BUTTON_EVENT_IN_BOTTOM_L:
|
||||
button |= LEFT;
|
||||
break;
|
||||
|
|
@ -832,6 +833,7 @@ tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
|
|||
break;
|
||||
case BUTTON_EVENT_IN_TOP_R:
|
||||
is_top = 1;
|
||||
/* fallthrough */
|
||||
case BUTTON_EVENT_IN_BOTTOM_R:
|
||||
button |= RIGHT;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue