mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-13 06:10:22 +01:00
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>
This commit is contained in:
parent
c82ec173bb
commit
081b6b3dff
1 changed files with 1 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue