From dc919998b1d6588f9b31db578a106b0239925920 Mon Sep 17 00:00:00 2001 From: JoseExposito Date: Fri, 7 May 2021 08:17:15 +0200 Subject: [PATCH] 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: --- src/wayland/meta-wayland-pointer-gesture-swipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/meta-wayland-pointer-gesture-swipe.c b/src/wayland/meta-wayland-pointer-gesture-swipe.c index 043e3eb23..d95e84941 100644 --- a/src/wayland/meta-wayland-pointer-gesture-swipe.c +++ b/src/wayland/meta-wayland-pointer-gesture-swipe.c @@ -120,6 +120,7 @@ meta_wayland_pointer_gesture_swipe_handle_event (MetaWaylandPointer *pointer, handle_swipe_update (pointer, event); break; case CLUTTER_TOUCHPAD_GESTURE_PHASE_END: + case CLUTTER_TOUCHPAD_GESTURE_PHASE_CANCEL: handle_swipe_end (pointer, event); break; default: