From b64a60a63397a7a1187e70ece8e6c9072510ddcd Mon Sep 17 00:00:00 2001 From: JoseExposito Date: Mon, 12 Apr 2021 09:18:39 +0200 Subject: [PATCH] libinput: change gesture notify cancel parameter from int to bool MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/libinput-private.h | 4 ++-- src/libinput.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libinput-private.h b/src/libinput-private.h index 0e2b437..8ccd5dc 100644 --- a/src/libinput-private.h +++ b/src/libinput-private.h @@ -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, diff --git a/src/libinput.c b/src/libinput.c index 6b7d80a..b4164e2 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -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 }; -- 2.7.4