ecore_wayland: add ECORE_WL_WINDOW_TYPE_NOTIFICATION to enum values and support windo... 58/49758/7 accepted/tizen/mobile/20151108.231153 accepted/tizen/tv/20151108.231219 accepted/tizen/wearable/20151108.231232 submit/tizen/20151108.083635
authorDuna Oh <duna.oh@samsung.com>
Tue, 20 Oct 2015 05:22:19 +0000 (14:22 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Sun, 8 Nov 2015 08:29:25 +0000 (00:29 -0800)
Change-Id: I1156804200b304d5649a6d06ea91e7a43ac0769d
Signed-off-by: Duna Oh <duna.oh@samsung.com>
src/lib/ecore_wayland/Ecore_Wayland.h
src/lib/ecore_wayland/ecore_wl_window.c

index 2cefafa..15e6803 100644 (file)
@@ -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);
index 5777d88..cd13bab 100644 (file)
@@ -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