• Carlos Garnacho's avatar
    gesturesingle: check for the sequence being handled, not just the event · dca2f438
    Carlos Garnacho authored
    Checking the return value was valid for most gestures, but
    GtkGestureLongPress, where the first press triggers internally an action,
    but does nothing for the sequence to be claimed/denied, FALSE was eventually
    returned, and the button/sequence functions would be incorrect when
    ::pressed is emitted.
    
    So check that the sequence is being handled by the gesture, this is more
    desirable than the return value as it's independent of sequence state,
    and still will be FALSE for the cases we want to catch here.
    dca2f438
gtkgesturesingle.c 15.7 KB