[PATCH libinput 3/9] touchpad: reset the tap timer_fd to -1 on destroy

Peter Hutterer peter.hutterer at who-t.net
Thu Mar 27 23:23:52 PDT 2014


No real effect, just for safety

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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



More information about the wayland-devel mailing list