touchpad: update the timestamp even when we only get other axes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-06-21 11:39:08 +10:00
parent 64f6603ecb
commit f10c0c590c

View file

@ -338,11 +338,13 @@ tp_process_absolute(struct tp_dispatch *tp,
break;
case ABS_MT_PRESSURE:
t->pressure = e->value;
t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_OTHERAXIS;
break;
case ABS_MT_TOOL_TYPE:
t->is_tool_palm = e->value == MT_TOOL_PALM;
t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_OTHERAXIS;
break;
@ -377,6 +379,7 @@ tp_process_absolute_st(struct tp_dispatch *tp,
break;
case ABS_PRESSURE:
t->pressure = e->value;
t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_OTHERAXIS;
break;