EAPI Eina_Bool ecore_wl2_window_focus_skip_get(Ecore_Wl2_Window *window);
/**
+ * Set the role of a given window
+ *
+ * @param window
+ * @param role
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI void ecore_wl2_window_role_set(Ecore_Wl2_Window *window, const char *role);
+
+/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group
*
if (window->title) eina_stringshare_del(window->title);
if (window->class) eina_stringshare_del(window->class);
+ if (window->role) eina_stringshare_del(window->role);
display->windows =
eina_inlist_remove(display->windows, EINA_INLIST_GET(window));
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
return window->focus_skip;
}
+
+EAPI void
+ecore_wl2_window_role_set(Ecore_Wl2_Window *window, const char *role)
+{
+ EINA_SAFETY_ON_NULL_RETURN(window);
+ eina_stringshare_replace(&window->role, role);
+}