EAPI void ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win);
EAPI void ecore_wl_window_parent_set(Ecore_Wl_Window *win, Ecore_Wl_Window *parent);
+EAPI int ecore_wl_window_id_get(Ecore_Wl_Window *win);
+
/**
* Returns a wl_surface with no association to any wl_shell_surface.
*
return win->rotation;
}
+/* @since 1.8 */
+EAPI int
+ecore_wl_window_id_get(Ecore_Wl_Window *win)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ if (!win) return 0;
+ return win->id;
+}
+
+
/* local functions */
static void
_ecore_wl_window_cb_ping(void *data EINA_UNUSED, struct wl_shell_surface *shell_surface, unsigned int serial)
wdata->win =
ecore_wl_window_new(p, x, y, w + fw, h + fh,
ECORE_WL_WINDOW_BUFFER_TYPE_EGL_WINDOW);
- ee->prop.window = wdata->win->id;
+ ee->prop.window = ecore_wl_window_id_get(wdata->win);
ee->evas = evas_new();
evas_data_attach_set(ee->evas, ee);
wdata->win =
ecore_wl_window_new(p, x, y, w + fw, h + fh,
ECORE_WL_WINDOW_BUFFER_TYPE_SHM);
- ee->prop.window = wdata->win->id;
+ ee->prop.window = ecore_wl_window_id_get(wdata->win);
ee->evas = evas_new();
evas_data_attach_set(ee->evas, ee);
strcpy((char *)e->key, key);
strcpy((char *)e->string, string);
- e->window = imcontext->window->id;
- e->event_window = imcontext->window->id;
+ e->window = ecore_wl_window_id_get(imcontext->window);
+ e->event_window = ecore_wl_window_id_get(imcontext->window);
e->timestamp = time;
e->modifiers = 0;