mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 04:30:16 +01:00
touchpad: reset the tap timer_fd to -1 on destroy
No real effect, just for safety Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
cba4560566
commit
ae875520d1
1 changed files with 3 additions and 1 deletions
|
|
@ -615,6 +615,8 @@ tp_destroy_tap(struct tp_dispatch *tp)
|
|||
libinput_remove_source(tp->device->base.seat->libinput, tp->tap.source);
|
||||
tp->tap.source = NULL;
|
||||
}
|
||||
if (tp->tap.timer_fd > -1)
|
||||
if (tp->tap.timer_fd > -1) {
|
||||
close(tp->tap.timer_fd);
|
||||
tp->tap.timer_fd = -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue