summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_private.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-24 16:03:10 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-24 16:06:52 -0500
commit27f88b534a4a630db4d57814d9c6d8a3d2d8f512 (patch)
tree1724b0a8be4404250d168b7087ddbaecb5d9896f /src/lib/elput/elput_private.h
parentaae4d21b633d4cfe6839c1685fbebf59e199b60d (diff)
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.
Diffstat (limited to 'src/lib/elput/elput_private.h')
-rw-r--r--src/lib/elput/elput_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 5b38c14ab6..709871c368 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -279,6 +279,8 @@ struct _Elput_Manager
279 } cached; 279 } cached;
280 int output_w, output_h; 280 int output_w, output_h;
281 281
282 int drm_opens;
283
282 Elput_Input input; 284 Elput_Input input;
283 Eina_Bool del : 1; 285 Eina_Bool del : 1;
284}; 286};