forked from enlightenment/efl
ecore_wl2: add API for testing if a window has a shell surface
This commit is contained in:
parent
2515556673
commit
35995be7b0
|
@ -1233,6 +1233,15 @@ EAPI Eina_Bool ecore_wl2_offer_supprts_mime(Ecore_Wl2_Offer *offer, const char *
|
||||||
*/
|
*/
|
||||||
EAPI void ecore_wl2_offer_finish(Ecore_Wl2_Offer *offer);
|
EAPI void ecore_wl2_offer_finish(Ecore_Wl2_Offer *offer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a window has a shell surface - without one it can't be visible.
|
||||||
|
*
|
||||||
|
* @param The window to check
|
||||||
|
*
|
||||||
|
* @return Returns true if the window has an associated shell surface.
|
||||||
|
* @since 1.19
|
||||||
|
*/
|
||||||
|
EAPI Eina_Bool ecore_wl2_window_has_shell_surface(Ecore_Wl2_Window *win);
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
|
@ -1002,3 +1002,11 @@ ecore_wl2_window_input_get(Ecore_Wl2_Window *window)
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_wl2_window_has_shell_surface(Ecore_Wl2_Window *window)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
|
||||||
|
|
||||||
|
return (window->xdg_surface || window->wl_shell_surface);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue