forked from enlightenment/efl
ecore-wl2: Add support for window types
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d02da903fe
commit
167e8d074b
|
@ -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;
|
||||
|
||||
|
|
|
@ -77,6 +77,8 @@ struct _Ecore_Wl2_Window
|
|||
struct xdg_popup *xdg_popup;
|
||||
|
||||
Eina_Rectangle geometry;
|
||||
|
||||
Ecore_Wl2_Window_Type type;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue