1
0
Fork 0

clutter/click-action: Don't stop release events if gesture is inactive

I don't see how this makes sense at all, ClutterClickAction really
shouldn't mess with BUTTON_RELEASE events that are not part of a
gesture.

So propagate those events instead of stopping them.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2552>
This commit is contained in:
Jonas Dreßler 2022-08-03 14:36:06 +02:00 committed by Marge Bot
parent 4fce0b974b
commit 8ad4056aa2

View file

@ -360,7 +360,7 @@ clutter_click_action_handle_event (ClutterAction *action,
G_GNUC_FALLTHROUGH;
case CLUTTER_BUTTON_RELEASE:
if (!priv->is_held)
return CLUTTER_EVENT_STOP;
return CLUTTER_EVENT_PROPAGATE;
if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
clutter_event_get_device (event) != priv->press_device ||