From 42ed6173021b65a7213b9e4a6ed3759414d1045e Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 10 Mar 2014 12:36:21 +0000 Subject: [PATCH] ecore-drm: Add API function to set the window we should send events too. Signed-off-by: Chris Michael --- src/lib/ecore_drm/Ecore_Drm.h | 1 + src/lib/ecore_drm/ecore_drm_device.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index d776097b9d..fdf41b499a 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h @@ -142,6 +142,7 @@ EAPI Eina_Bool ecore_drm_device_master_get(Ecore_Drm_Device *dev); EAPI Eina_Bool ecore_drm_device_master_set(Ecore_Drm_Device *dev); EAPI Eina_Bool ecore_drm_device_master_drop(Ecore_Drm_Device *dev); EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev); +EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window); EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name); EAPI Eina_Bool ecore_drm_tty_close(Ecore_Drm_Device *dev); diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c index f1ab021ff5..0f7efdf8dc 100644 --- a/src/lib/ecore_drm/ecore_drm_device.c +++ b/src/lib/ecore_drm/ecore_drm_device.c @@ -592,3 +592,17 @@ ecore_drm_device_fd_get(Ecore_Drm_Device *dev) if (!dev) return -1; return dev->drm.fd; } + +/** + * TODO: Doxy + * + * @since 1.10 + */ +EAPI void +ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window) +{ + /* check for valid device */ + if ((!dev) || (dev->drm.fd < 0)) return; + + dev->window = window; +} -- 2.34.1