summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2016-03-24 08:53:15 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-03-24 08:53:15 -0400
commit1a27f1274e12ce6c9dfeb6a0e7170d714917eb7c (patch)
tree4a37b80343f7974054e909ab6241e7eeafd6d35d /src/lib/ecore_wayland
parent161883291c38e14f719a87c27fde78b9860644ed (diff)
ecore_wayland: Add a new API to get keymap - ecore_wl_input_keymap_get()
Summary: Each Ecore_Wl_Input structure has there own keymap. This keymap is struct xkb_keymap used in libxkbcommon lib and the client can get this keymap from server in wayland system. So if the client want to get keymap and use some libxkbcommon APIs, use this API to get keymap. Test Plan: Use this api after initialize wayland system. Reviewers: raster, zmike, ManMower, devilhorns Reviewed By: devilhorns Subscribers: input.hacker, ohduna, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3819
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/Ecore_Wayland.h7
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h
index 173501407f..d422520965 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -443,6 +443,13 @@ EAPI void ecore_wl_input_cursor_size_set(Ecore_Wl_Input *input, const int size);
443EAPI void ecore_wl_input_cursor_theme_name_set(Ecore_Wl_Input *input, const char *cursor_theme_name); 443EAPI void ecore_wl_input_cursor_theme_name_set(Ecore_Wl_Input *input, const char *cursor_theme_name);
444 444
445/** 445/**
446 * @ingroup Ecore_Wl_Input_Group
447 * @since 1.17
448 */
449EAPI struct xkb_keymap *ecore_wl_input_keymap_get(Ecore_Wl_Input *input);
450
451
452/**
446 * Retrieves the Wayland Globals Interface list used for the current Wayland connection. 453 * Retrieves the Wayland Globals Interface list used for the current Wayland connection.
447 * 454 *
448 * This call, if done after the ECORE_WL_EVENT_INTERFACES_BOUND event was 455 * This call, if done after the ECORE_WL_EVENT_INTERFACES_BOUND event was
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 90d5e497c0..4b0845970e 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -248,6 +248,16 @@ ecore_wl_input_cursor_theme_name_set(Ecore_Wl_Input *input, const char *cursor_t
248 input->display->wl.shm); 248 input->display->wl.shm);
249} 249}
250 250
251EAPI struct xkb_keymap *
252ecore_wl_input_keymap_get(Ecore_Wl_Input *input)
253{
254 LOGFN(__FILE__, __LINE__, __FUNCTION__);
255
256 EINA_SAFETY_ON_NULL_RETURN_VAL(input, NULL);
257
258 return input->xkb.keymap;
259}
260
251static Eina_Bool 261static Eina_Bool
252_ecore_wl_input_cursor_update(void *data) 262_ecore_wl_input_cursor_update(void *data)
253{ 263{