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)
downloadefl-devs/devilhorns/input_suspend.tar.gz
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)
ev = event;
device = data;
+ if (!ev->active)
+ elput_input_devices_suspend(device->em);
+ else
+ elput_input_devices_resume(device->em);
+
EINA_LIST_FOREACH(device->outputs, l, output)
ecore_drm2_output_enabled_set(output, ev->active);