Re: [PATCH libinput] evdev: drain any pending evdev events on a device

2015-12-17 Thread Hans de Goede
Hi, On 17-12-15 02:11, Peter Hutterer wrote: open_restricted() doesn't always mean 'open the fd'. When the X server uses systemd-logind, the fd is opened once before PreInit and then kept open across devices being disabled and enabled through the protocol. When the device is re-enabled and libi

[PATCH libinput] evdev: drain any pending evdev events on a device

2015-12-16 Thread Peter Hutterer
open_restricted() doesn't always mean 'open the fd'. When the X server uses systemd-logind, the fd is opened once before PreInit and then kept open across devices being disabled and enabled through the protocol. When the device is re-enabled and libinput_path_add_device is called for the device, w