mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
d824c14a03
commit
dc919998b1
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user