From: Junkyeong Kim Date: Mon, 19 Aug 2019 11:08:13 +0000 (+0900) Subject: e_xdg_shell_v6: add api to get ec from zxdg_surface_v6 resource X-Git-Tag: submit/tizen/20190822.002858~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef8ab9adb51f769e13020aa2e9aee4510d6ad283;p=platform%2Fupstream%2Fenlightenment.git e_xdg_shell_v6: add api to get ec from zxdg_surface_v6 resource 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 --- diff --git a/src/bin/e_xdg_shell_v6.c b/src/bin/e_xdg_shell_v6.c index 7e5333e147..d977738302 100644 --- a/src/bin/e_xdg_shell_v6.c +++ b/src/bin/e_xdg_shell_v6.c @@ -1977,4 +1977,19 @@ e_xdg_shell_v6_shutdown(void) { 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 */ diff --git a/src/bin/e_xdg_shell_v6.h b/src/bin/e_xdg_shell_v6.h index c77b23b7a3..d835cad334 100644 --- a/src/bin/e_xdg_shell_v6.h +++ b/src/bin/e_xdg_shell_v6.h @@ -4,6 +4,7 @@ # 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