mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 01:10:08 +01:00
touchpad: don't try to unhover touches in NONE state
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b4bb28caeb)
This commit is contained in:
parent
c17ab4dacd
commit
124c112420
1 changed files with 3 additions and 0 deletions
|
|
@ -811,6 +811,9 @@ tp_unhover_pressure(struct tp_dispatch *tp, uint64_t time)
|
|||
for (i = 0; i < (int)tp->num_slots; i++) {
|
||||
t = tp_get_touch(tp, i);
|
||||
|
||||
if (t->state == TOUCH_NONE)
|
||||
continue;
|
||||
|
||||
if (t->dirty) {
|
||||
if (t->state == TOUCH_HOVERING) {
|
||||
if (t->pressure >= tp->pressure.high) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue