diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 03d6db5b34..69e0c778d4 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -1096,6 +1096,18 @@ EAPI void ecore_wl2_window_rotation_change_prepare_done_send(Ecore_Wl2_Window *w EAPI void ecore_wl2_window_rotation_change_request_send(Ecore_Wl2_Window *window, int rot); EAPI void ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, int w, int h); +/** + * Get list of supported auxiliary window hints + * + * @param window + * + * @return An Eina_List of supported auxiliary hints, or NULL otherwise + * + * @ingroup Ecore_Wl2_Window_Group + * @since 1.20 + */ +EAPI Eina_List *ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window *window); + /** * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions * @ingroup Ecore_Wl2_Group diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 618ebb8f5a..12c888a887 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -1368,3 +1368,17 @@ ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, in ecore_event_add(ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE, ev, NULL, NULL); } + +EAPI Eina_List * +ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window *window) +{ + Eina_List *ret = NULL; + Ecore_Wl2_Aux_Hint *ehint; + + EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL); + + EINA_INLIST_FOREACH(window->supported_aux_hints, ehint) + ret = eina_list_append(ret, eina_stringshare_add(ehint->val)); + + return ret; +}