lid: setup the keyboard notifier when pairing it
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Fri, 19 May 2017 10:57:23 +0000 (12:57 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 May 2017 05:10:10 +0000 (15:10 +1000)
commit8fbdef3aadfaa09dfaec50b0f67ec43ad0b55e96
tree8aa6ffb1cba5ce2eb2d539ccb5bd00d29c6d7035
parent28fcd2c6d41e972f606c60f56c6f0a94d73455ae
lid: setup the keyboard notifier when pairing it

On unreliable LID switches, we might have the LID declared as closed
while it is actually not. We can not wait for the first switch event to setup
the keyboard listener: it will never occur.

https://bugs.freedesktop.org/show_bug.cgi?id=101099

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-lid.c
test/test-lid.c