ecore-wl2: Add support for window types

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-08-20 12:54:27 -04:00
parent d02da903fe
commit 167e8d074b
3 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -77,6 +77,8 @@ struct _Ecore_Wl2_Window
struct xdg_popup *xdg_popup;
Eina_Rectangle geometry;
Ecore_Wl2_Window_Type type;
};
#endif

View File

@ -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;
}