touchpad: Rename consumed to filter_motion
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Sep 2014 11:21:07 +0000 (13:21 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Nov 2014 05:31:59 +0000 (15:31 +1000)
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>
src/evdev-mt-touchpad.c

index a8d12e4..092e26f 100644 (file)
@@ -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;
        }