projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cba4560
)
touchpad: reset the tap timer_fd to -1 on destroy
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 15 Apr 2014 12:28:00 +0000
(14:28 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Thu, 22 May 2014 12:39:00 +0000
(14:39 +0200)
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>
src/evdev-mt-touchpad-tap.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad-tap.c
b/src/evdev-mt-touchpad-tap.c
index
5fa712f
..
bcc5700
100644
(file)
--- 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;
+ }
}