Commit d79b6299 authored by Hans de Goede's avatar Hans de Goede Committed by Peter Hutterer

touchpad: Rename consumed to filter_motion

This is what the return value in tp_tap_handle_state is called, and it better
reflects what the flag does.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent cab012ee
......@@ -527,7 +527,7 @@ tp_post_events(struct tp_dispatch *tp, uint64_t time)
{
struct tp_touch *t = tp_current_touch(tp);
double dx, dy;
int consumed = 0;
int filter_motion = 0;
/* Only post (top) button events while suspended */
if (tp->device->suspended) {
......@@ -535,10 +535,10 @@ tp_post_events(struct tp_dispatch *tp, uint64_t time)
return;
}
consumed |= tp_tap_handle_state(tp, time);
consumed |= tp_post_button_events(tp, time);
filter_motion |= tp_tap_handle_state(tp, time);
filter_motion |= tp_post_button_events(tp, time);
if (consumed) {
if (filter_motion) {
evdev_stop_scroll(tp->device, time);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment