[mutter] wayland/pointer-gestures: Fix swipe cancellation



commit dc919998b1d6588f9b31db578a106b0239925920
Author: JoseExposito <jose exposito89 gmail com>
Date:   Fri May 7 08:17:15 2021 +0200

    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>

 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 043e3eb234..d95e84941a 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]