elput: Fix multiple open/close of drm devices
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 24 Jul 2017 21:03:10 +0000 (16:03 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Mon, 24 Jul 2017 21:06:52 +0000 (16:06 -0500)
commit27f88b534a4a630db4d57814d9c6d8a3d2d8f512
tree1724b0a8be4404250d168b7087ddbaecb5d9896f
parentaae4d21b633d4cfe6839c1685fbebf59e199b60d
elput: Fix multiple open/close of drm devices

When I added the code to probe drm devices to ensure they're
modeset capable (ref 414d406b3b442216543cdaef112787696ae09898)
I didn't realize elput didn't allow us to open and close more than
one drm device at startup without blowing up libinput.

This is a somewhat dirty hack to rough that in.

The problem is that open/close the device during startup will
result in an async "gone" callback from logind, which then kicks
off an input shutdown.  We need to try harder to only do that
shutdown when it makes sense.
src/lib/elput/elput_logind.c
src/lib/elput/elput_private.h