summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-06-24 10:57:07 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-07-01 08:57:18 +1000
commit081b6b3dff6fb3ac2f4f0ef9ecdda818792a0b7c (patch)
tree94d42cc4aae933cc0ff00c9ebb51b415273755d9 /src
parentc82ec173bb1294603b4cb81f0f12d24bdf104688 (diff)
downloadlibinput-081b6b3dff6fb3ac2f4f0ef9ecdda818792a0b7c.tar.gz
touchpad: always set touch->palm.time on touch begin
We will use this outside of DWT, so set it unconditionally on touch begin. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-mt-touchpad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index a2a3a633..792184c3 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -211,6 +211,7 @@ tp_begin_touch(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
t->state = TOUCH_BEGIN;
t->millis = time;
tp->nfingers_down++;
+ t->palm.time = time;
assert(tp->nfingers_down >= 1);
}
@@ -491,7 +492,6 @@ tp_palm_detect_dwt(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
if (tp->dwt.keyboard_active &&
t->state == TOUCH_BEGIN) {
t->palm.state = PALM_TYPING;
- t->palm.time = time;
t->palm.first = t->point;
return 1;
} else if (!tp->dwt.keyboard_active &&