gesture_add_mustfail()

Add a gesture to the 'must fail' list.

Synopsis:

#include <sys/queue.h>
#include "input/event_types.h"
#include "gestures/bucket.h"
 
int gesture_add_mustfail(gesture_base_t *target, gesture_base_t *mustfail)

Arguments:

target
The gesture dependent on the failure of the second gesture.
mustfail
The gesture that must fail. This gesture is added to the 'must fail' list of the target gesture.

Library:

libgestures

Description:

This function adds a gesture to the 'must fail' list of another gesture. That is, the gesture added to the list must fail in order for the gesture that owns the list to complete.

Returns:

0 on sucess; -1 on error.