evdev: Ensure the libevdev object receives the new fd on resume
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 9 Dec 2014 14:55:32 +0000 (15:55 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 10 Dec 2014 03:52:25 +0000 (13:52 +1000)
commit47e10da12a31817474b5d291d3822154e87a4417
tree5e0fc619af86882a54f573bd2439e8a4162de741
parent36017fbd3c87aca01dd978f2b65bf634885fd8bc
evdev: Ensure the libevdev object receives the new fd on resume

Otherwise, input_events will be attempted to read from the wrong place,
which also leaves the right/current fd with pending data to be read,
making the epoll fd wake up constantly.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c