mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 01:10:25 +01:00
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: 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>
This commit is contained in:
parent
cab012eefe
commit
d79b629963
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue