diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-21 11:39:08 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-21 19:07:11 +1000 |
commit | f10c0c590c587ee9c846e760473f301ccc2ea1f2 (patch) | |
tree | 1bb60d244cb4d442af98b70abbbff14d4f678fe4 /src | |
parent | 64f6603ecb2cf2bd326692f3068122245ba3f729 (diff) |
touchpad: update the timestamp even when we only get other axes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev-mt-touchpad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 9f2dd8b..2d39e18 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -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; |