diff options
author | JoseExposito <jose.exposito89@gmail.com> | 2021-04-12 18:12:25 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-13 14:01:11 +1000 |
commit | 82da751726b7038e347be5377c3ebf468e6b5770 (patch) | |
tree | 893bd347857ec881222dc44f5263e6d83a15c61e | |
parent | b64a60a63397a7a1187e70ece8e6c9072510ddcd (diff) | |
download | libinput-82da751726b7038e347be5377c3ebf468e6b5770.tar.gz |
gestures: rename int filter_motion to bool ignore_motion
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 <jose.exposito89@gmail.com>
-rw-r--r-- | src/evdev-mt-touchpad.c | 8 |
1 files 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); |