From: Duna Oh Date: Tue, 20 Oct 2015 05:22:19 +0000 (+0900) Subject: ecore_wayland: add ECORE_WL_WINDOW_TYPE_NOTIFICATION to enum values and support windo... X-Git-Tag: accepted/tizen/mobile/20151108.231153^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F49758%2F7;p=platform%2Fupstream%2Fefl.git ecore_wayland: add ECORE_WL_WINDOW_TYPE_NOTIFICATION to enum values and support window_type_set Change-Id: I1156804200b304d5649a6d06ea91e7a43ac0769d Signed-off-by: Duna Oh --- diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h index 2cefafa..15e6803 100644 --- a/src/lib/ecore_wayland/Ecore_Wayland.h +++ b/src/lib/ecore_wayland/Ecore_Wayland.h @@ -85,7 +85,8 @@ enum _Ecore_Wl_Window_Type ECORE_WL_WINDOW_TYPE_TRANSIENT, ECORE_WL_WINDOW_TYPE_MENU, ECORE_WL_WINDOW_TYPE_DND, - ECORE_WL_WINDOW_TYPE_CUSTOM + ECORE_WL_WINDOW_TYPE_CUSTOM, + ECORE_WL_WINDOW_TYPE_NOTIFICATION }; enum _Ecore_Wl_Window_Buffer_Type @@ -710,6 +711,7 @@ EAPI struct wl_surface *ecore_wl_window_surface_get(Ecore_Wl_Window *win); EAPI struct wl_shell_surface *ecore_wl_window_shell_surface_get(Ecore_Wl_Window *win); EAPI struct xdg_surface *ecore_wl_window_xdg_surface_get(Ecore_Wl_Window *win); /** @since 1.12 */ EAPI Ecore_Wl_Window *ecore_wl_window_find(unsigned int id); +EAPI Ecore_Wl_Window_Type ecore_wl_window_type_get(Ecore_Wl_Window *win); EAPI void ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type); EAPI void ecore_wl_window_pointer_set(Ecore_Wl_Window *win, struct wl_surface *surface, int hot_x, int hot_y); EAPI void ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char *cursor_name); diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 5777d88..cd13bab 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -888,6 +888,15 @@ ecore_wl_window_find(unsigned int id) return win; } +EAPI Ecore_Wl_Window_Type +ecore_wl_window_type_get(Ecore_Wl_Window *win) +{ + LOGFN(__FILE__, __LINE__, __FUNCTION__); + + if (!win) return; + return win->type; +} + EAPI void ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type) { @@ -895,6 +904,9 @@ ecore_wl_window_type_set(Ecore_Wl_Window *win, Ecore_Wl_Window_Type type) if (!win) return; win->type = type; + + if ((win->surface) && (_ecore_wl_disp->wl.tz_policy)) + tizen_policy_set_type(_ecore_wl_disp->wl.tz_policy, win->surface, (uint32_t)type); } EAPI void