Skip to content
Snippets Groups Projects
Commit 23a611ea authored by Peter Hutterer's avatar Peter Hutterer
Browse files

fallback: allow for multiple keyboards to toggle the lid switch

Previously we only listened for events on the first one to come up, based on
the assumption that there can only be one internal keyboard. The Razer Blade
laptop keyboards come with with multiple event nodes, all looking like a
normal keyboard. The one that comes up first is one for special keys, so
typing on the internal keyboard after a lid switch does not toggle the write
state.

Fix this by allowing for up to 3 keyboard listeners for a lid switch.

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



Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 2ad669ee
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment