Skip to content

clutter: Always unregister point on GRAB_NOTIFY leave event

Carlos Garnacho requested to merge wip/carlosg/gesture-leave-handling into main

The ClutterGestureAction base code would correctly try to cancel a gesture if it would receive GRAB_NOTIFY leave events (that would indicate other portions of the actor tree stole input away from the gesture actor), but it would mistakenly do so only if the gesture was already initiated, possibly leaving stale point information if the gesture collected input but didn't initiate yet.

This could be indirectly seen clicking with the mouse on OSK keys with no motions in between, clicks would accumulate on the swipeTracker gestures until the trigger point, so the third click could drag the workspaces.

We do always want to unregister the related device/sequence here, do that while still cancelling any already initiated gesture.

Merge request reports