libinput debug-events looses events when a device is reconnected
Summary
Coming from this issue: https://github.com/bulletmark/libinput-gestures/issues/228
libinput debug-events looses events when a device is reconnected
Steps to reproduce
I noticed that when using an external trackpad and I monitor the events with eg.
libinput debug-events --device /dev/input/event21
The events get lost completely when turning the device off and on again. There's the same effect when going to suspend and waking up again, since the bluetooth connection needs a few seconds to re-establish.
When "just" running
libinput debug-events
everything works as expected.
libinput version you encountered the bug on
> libinput --version
1.14.1
Hardware information:
- DELL XPS 15
- Apple Trackpad 2