forked from enlightenment/efl
ecore-wl2: Add API function to return if a window is iconified
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b0f65024ff
commit
ecd8808918
|
@ -420,6 +420,9 @@ EAPI void ecore_wl2_window_geometry_get(Ecore_Wl2_Window *window, int *x, int *y
|
|||
/* TODO: doxy */
|
||||
EAPI void ecore_wl2_window_geometry_set(Ecore_Wl2_Window *window, int x, int y, int w, int h);
|
||||
|
||||
/* TODO: doxy */
|
||||
EAPI Eina_Bool ecore_wl2_window_iconified_get(Ecore_Wl2_Window *window);
|
||||
|
||||
/* # ifdef __cplusplus */
|
||||
/* } */
|
||||
/* # endif */
|
||||
|
|
|
@ -730,3 +730,11 @@ ecore_wl2_window_geometry_set(Ecore_Wl2_Window *window, int x, int y, int w, int
|
|||
if (window->xdg_surface)
|
||||
xdg_surface_set_window_geometry(window->xdg_surface, x, y, w, h);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_wl2_window_iconified_get(Ecore_Wl2_Window *window)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
|
||||
|
||||
return window->minimized;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue