1
0
Fork 0

clutter/click-action: Fix a couple of fall-through warnings

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
Jonas Ådahl 2022-03-04 20:48:45 +01:00 committed by Marge Bot
parent 63cc69b342
commit ad76c60ce3

View file

@ -308,6 +308,8 @@ clutter_click_action_handle_event (ClutterAction *action,
{
case CLUTTER_TOUCH_BEGIN:
has_button = FALSE;
G_GNUC_FALLTHROUGH;
case CLUTTER_BUTTON_PRESS:
if (priv->is_held)
return CLUTTER_EVENT_STOP;
@ -359,6 +361,8 @@ clutter_click_action_handle_event (ClutterAction *action,
case CLUTTER_TOUCH_END:
has_button = FALSE;
G_GNUC_FALLTHROUGH;
case CLUTTER_BUTTON_RELEASE:
if (!priv->is_held)
return CLUTTER_EVENT_STOP;