summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-27 15:45:17 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-27 15:45:17 -0400
commit595b45f912c7d7ef346492e2109931ecb32d2caf (patch)
tree0c3af5ca1439d5a868175d0af186841df3c2bf93
parentee3e495a2a8570aac72a865bdcfc46d8c16c44d6 (diff)
ecore-drm2: Suspend/Resume input devices when we VT-Switchdevs/devilhorns/input_suspend
When we get notified that a vt-switch happens, we should suspend/resume inputs accordingly Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 8f2e43cfde..67cb953341 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -20,6 +20,11 @@ _cb_session_active(void *data, int type EINA_UNUSED, void *event)
20 ev = event; 20 ev = event;
21 device = data; 21 device = data;
22 22
23 if (!ev->active)
24 elput_input_devices_suspend(device->em);
25 else
26 elput_input_devices_resume(device->em);
27
23 EINA_LIST_FOREACH(device->outputs, l, output) 28 EINA_LIST_FOREACH(device->outputs, l, output)
24 ecore_drm2_output_enabled_set(output, ev->active); 29 ecore_drm2_output_enabled_set(output, ev->active);
25 30