summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);