• Carlos Garnacho's avatar
    gesture-tracker: Add meta_gesture_tracker_get_n_current_touches() · 177ec27c
    Carlos Garnacho authored
    Due to the way the MetaGestureTracker processes every touch event, this
    will tell as closely to Clutter as possible the current number of touches
    happening on the stage.
    Even though, this is subject to windowing behavior, on X11, rejected touches
    will be soon followed by a XI_TouchEnd event, so the compositor will stop
    seeing touch sequences that are still operating on clients. On wayland, touch
    sequences are processed by the compositor during all their lifetime, so these
    will stay on the MetaGestureTracker with META_SEQUENCE_PENDING_END state, yet
    still tracked.
meta-gesture-tracker.c 16.7 KB