Instead of use direct access to the Ecore_Wl_Window structure, just use
the getter, so we can hide the internals.
EAPI void ecore_wl_window_title_set(Ecore_Wl_Window *win, const char *title);
EAPI void ecore_wl_window_class_name_set(Ecore_Wl_Window *win, const char *class_name);
+EAPI Ecore_Wl_Input *ecore_wl_window_keyboard_get(Ecore_Wl_Window *win);
+
/**
* Returns a wl_surface with no association to any wl_shell_surface.
*
wl_shell_surface_set_class(win->shell_surface, win->class_name);
}
+/* @since 1.8 */
+/* Maybe we need an ecore_wl_window_pointer_get() too */
+EAPI Ecore_Wl_Input *
+ecore_wl_window_keyboard_get(Ecore_Wl_Window *win)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ if (!win) return 0;
+ return win->keyboard_device;
+}
+
/* local functions */
static void
if (!imcontext->window) return;
- input = imcontext->window->keyboard_device;
+ input = ecore_wl_window_keyboard_get(imcontext->window);
if (!input)
return;