From 82da751726b7038e347be5377c3ebf468e6b5770 Mon Sep 17 00:00:00 2001 From: JoseExposito Date: Mon, 12 Apr 2021 18:12:25 +0200 Subject: [PATCH] gestures: rename int filter_motion to bool ignore_motion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a bool instead of an int and also rename the variable to avoid ambiguity with tp_filter_motion(). Signed-off-by: José Expósito --- src/evdev-mt-touchpad.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 28c21d8e..102802d0 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -1855,7 +1855,7 @@ tp_post_process_state(struct tp_dispatch *tp, uint64_t time) static void tp_post_events(struct tp_dispatch *tp, uint64_t time) { - int filter_motion = 0; + bool ignore_motion = false; /* Only post (top) button events while suspended */ if (tp->device->is_suspended) { @@ -1863,10 +1863,10 @@ tp_post_events(struct tp_dispatch *tp, uint64_t time) return; } - filter_motion |= tp_tap_handle_state(tp, time); - filter_motion |= tp_post_button_events(tp, time); + ignore_motion |= tp_tap_handle_state(tp, time); + ignore_motion |= tp_post_button_events(tp, time); - if (filter_motion || + if (ignore_motion || tp->palm.trackpoint_active || tp->dwt.keyboard_active) { tp_edge_scroll_stop_events(tp, time);