libinput: change gesture notify cancel parameter from int to bool

Change the "cancel" parameter in the existing notify methods (swipe, pinch and
gesture_notify) from int to bool. It is used as boolean, the fact that it's an
int is just a historical quirkyness.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
JoseExposito 2021-04-12 09:18:39 +02:00 committed by Peter Hutterer
parent 9ce8d561c1
commit b64a60a633
2 changed files with 5 additions and 5 deletions

View file

@ -608,7 +608,7 @@ void
gesture_notify_swipe_end(struct libinput_device *device,
uint64_t time,
int finger_count,
int cancelled);
bool cancelled);
void
gesture_notify_pinch(struct libinput_device *device,
@ -625,7 +625,7 @@ gesture_notify_pinch_end(struct libinput_device *device,
uint64_t time,
int finger_count,
double scale,
int cancelled);
bool cancelled);
void
tablet_notify_axis(struct libinput_device *device,

View file

@ -2812,7 +2812,7 @@ gesture_notify(struct libinput_device *device,
uint64_t time,
enum libinput_event_type type,
int finger_count,
int cancelled,
bool cancelled,
const struct normalized_coords *delta,
const struct normalized_coords *unaccel,
double scale,
@ -2855,7 +2855,7 @@ void
gesture_notify_swipe_end(struct libinput_device *device,
uint64_t time,
int finger_count,
int cancelled)
bool cancelled)
{
const struct normalized_coords zero = { 0.0, 0.0 };
@ -2882,7 +2882,7 @@ gesture_notify_pinch_end(struct libinput_device *device,
uint64_t time,
int finger_count,
double scale,
int cancelled)
bool cancelled)
{
const struct normalized_coords zero = { 0.0, 0.0 };