This is what the return value in tp_tap_handle_state is called, and it better
reflects what the flag does.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
{
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) {
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;
}