wayland/pointer-gestures: Fix swipe cancellation

The cancel phase for swipe gestures was not being handled, hence,
Wayland "end" events where not sent to clients when the gesture was
cancelled.

A swipe gesture is cancelled when extra finger(s) are put down on the
touchpad in the middle of the gesture or when some, but not all, of the
fingers are put up.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1857>
This commit is contained in:
JoseExposito 2021-05-07 08:17:15 +02:00 committed by Marge Bot
parent d824c14a03
commit dc919998b1

View File

@ -120,6 +120,7 @@ meta_wayland_pointer_gesture_swipe_handle_event (MetaWaylandPointer *pointer,
handle_swipe_update (pointer, event); handle_swipe_update (pointer, event);
break; break;
case CLUTTER_TOUCHPAD_GESTURE_PHASE_END: case CLUTTER_TOUCHPAD_GESTURE_PHASE_END:
case CLUTTER_TOUCHPAD_GESTURE_PHASE_CANCEL:
handle_swipe_end (pointer, event); handle_swipe_end (pointer, event);
break; break;
default: default: