clutter/gesture-action: Let lower layers cancel gesture on stage grab

Since the last commit, ClutterStage automatically cancels an implicit
grab (including all its ClutterActions) when a conflicting ClutterGrab
appears.

This means we no longer have to look out for GRAB_NOTIFY crossings in
ClutterGestureAction and can instead depend on the sequence_cancelled()
vfunc for this.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2342>
This commit is contained in:
Jonas Dreßler 2022-12-05 23:12:33 +01:00 committed by Marge Bot
parent debbd88f8c
commit 53b6d4abb1

View File

@ -382,16 +382,6 @@ clutter_gesture_action_handle_event (ClutterAction *action,
{
case CLUTTER_ENTER:
case CLUTTER_LEAVE:
if (point &&
event_type == CLUTTER_LEAVE &&
(event->crossing.flags & CLUTTER_EVENT_FLAG_GRAB_NOTIFY) != 0)
{
gesture_unregister_point (gesture_action, position);
if (priv->in_gesture)
cancel_gesture (gesture_action);
}
return CLUTTER_EVENT_PROPAGATE;
case CLUTTER_BUTTON_PRESS: