summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-27 13:28:10 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-27 13:28:10 -0400
commit1bbc23b08634444edee9a19603aaf3360489f483 (patch)
tree85b7233c185e81f56e3c798ba5bbfe56de28a26a /src/lib/ecore_drm2/ecore_drm2_device.c
parent3754ad04770ad61686e901363ba11d05ff39e135 (diff)
ecore-drm2: Add API for vt-switching
This commit adds a function we can call from inside Enlightenment in order to fix an issue with VT-Switching. The problem was when a client application is open, the compositor does not pass along the key-combo for vt-switch but rather sends it to an application. This patch (along with upcoming Enlightenment one) fixes the issue. NB: This late API add approved by Stefan ;) @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 8794063a2a..8f2e43cfde 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -363,3 +363,11 @@ ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h)
363 363
364 elput_input_devices_calibrate(device->em, w, h); 364 elput_input_devices_calibrate(device->em, w, h);
365} 365}
366
367EAPI Eina_Bool
368ecore_drm2_device_vt_set(Ecore_Drm2_Device *device, int vt)
369{
370 EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
371
372 return elput_manager_vt_set(device->em, vt);
373}