No real effect, just for safety
Signed-off-by: Peter Hutterer <[email protected]>
---
src/evdev-mt-touchpad-tap.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
index 5fa712f..bcc5700 100644
--- a/src/evdev-mt-touchpad-tap.c
+++ b/src/evdev-mt-touchpad-tap.c
@@ -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;
+ }
}
--
1.8.5.3
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel