the user data of zxdg_surface which is get from ecore_wl2_window_shell_surface_get is not ec.
so need api to get ec from zxdg_surface.
Change-Id: I01297bd630a6dd5ae36cfb7bebfd434b573c221b
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
{
E_FREE_FUNC(global_resource, wl_global_destroy);
}
+
+EINTERN E_Client *
+e_xdg_shell_v6_xdg_surface_ec_get(struct wl_resource *resource)
+{
+ E_Xdg_Surface *exsurf = NULL;
+
+ exsurf = wl_resource_get_user_data(resource);
+ if (!exsurf)
+ {
+ ERR("No E_Xdg_Shell in wl_resource", NULL);
+ return NULL;
+ }
+
+ return exsurf->ec;
+}
/* End of Xdg_shell */
# define E_XDG_SHELL_V6_H
EINTERN Eina_Bool e_xdg_shell_v6_init(void);
+EINTERN E_Client *e_xdg_shell_v6_xdg_surface_ec_get(struct wl_resource *resource);
# endif
#endif