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:
parent
debbd88f8c
commit
53b6d4abb1
@ -382,16 +382,6 @@ clutter_gesture_action_handle_event (ClutterAction *action,
|
|||||||
{
|
{
|
||||||
case CLUTTER_ENTER:
|
case CLUTTER_ENTER:
|
||||||
case CLUTTER_LEAVE:
|
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;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
|
||||||
case CLUTTER_BUTTON_PRESS:
|
case CLUTTER_BUTTON_PRESS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user