devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=167e8d074b0addd34e11c3c4881884c643affdc6

commit 167e8d074b0addd34e11c3c4881884c643affdc6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 20 12:54:27 2015 -0400

    ecore-wl2: Add support for window types
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 12 ++++++++++++
 src/lib/ecore_wl2/ecore_wl2_private.h |  2 ++
 src/lib/ecore_wl2/ecore_wl2_window.c  |  2 ++
 3 files changed, 16 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index d226ea4..c337b0c 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -46,6 +46,18 @@ typedef struct _Ecore_Wl2_Event_Global
    unsigned int id, version;
 } Ecore_Wl2_Event_Global;
 
+typedef enum _Ecore_Wl2_Window_Type
+{
+   ECORE_WL2_WINDOW_TYPE_NONE,
+   ECORE_WL2_WINDOW_TYPE_TOPLEVEL,
+   ECORE_WL2_WINDOW_TYPE_FULLSCREEN,
+   ECORE_WL2_WINDOW_TYPE_MAXIMIZED,
+   ECORE_WL2_WINDOW_TYPE_TRANSIENT,
+   ECORE_WL2_WINDOW_TYPE_MENU,
+   ECORE_WL2_WINDOW_TYPE_DND,
+   ECORE_WL2_WINDOW_TYPE_CUSTOM
+} Ecore_Wl2_Window_Type;
+
 EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED;
 EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED;
 
diff --git a/src/lib/ecore_wl2/ecore_wl2_private.h 
b/src/lib/ecore_wl2/ecore_wl2_private.h
index 337440e..7df7ff7 100644
--- a/src/lib/ecore_wl2/ecore_wl2_private.h
+++ b/src/lib/ecore_wl2/ecore_wl2_private.h
@@ -77,6 +77,8 @@ struct _Ecore_Wl2_Window
    struct xdg_popup *xdg_popup;
 
    Eina_Rectangle geometry;
+
+   Ecore_Wl2_Window_Type type;
 };
 
 #endif
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index e4224a3..7bd7255 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -25,6 +25,8 @@ ecore_wl2_window_new(Ecore_Wl2_Display *display, 
Ecore_Wl2_Window *parent, int x
    win->geometry.w = w;
    win->geometry.h = h;
 
+   win->type = ECORE_WL2_WINDOW_TYPE_TOPLEVEL;
+
    return win;
 }
 

-- 


Reply via email to