ecore-wl2: Add API to set if a window should skip focus

Small patch to add an API function which can be called to set if a
window should skip focus.

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-15 10:32:25 -04:00
parent 1ea5135673
commit 9b76c284c9
3 changed files with 20 additions and 0 deletions

View File

@ -1182,6 +1182,17 @@ EAPI Eina_Bool ecore_wl2_window_shell_surface_exists(Ecore_Wl2_Window *win);
/** @since 1.17 */
EAPI Ecore_Wl2_Display *ecore_wl2_window_display_get(const Ecore_Wl2_Window *window);
/**
* Set if this window should ignore focus requests
*
* @param window
* @param focus_skip
*
* @ingroup Ecore_Wl2_Window_Group
* @since 1.20
*/
EAPI void ecore_wl2_window_focus_skip_set(Ecore_Wl2_Window *window, Eina_Bool focus_skip);
/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group

View File

@ -190,6 +190,8 @@ struct _Ecore_Wl2_Window
Eina_Bool input_set : 1;
Eina_Bool opaque_set : 1;
Eina_Bool focus_skip : 1;
struct
{
Eina_Bool configure : 1;

View File

@ -1455,3 +1455,10 @@ ecore_wl2_window_aux_hint_del(Ecore_Wl2_Window *window, int id)
}
}
}
EAPI void
ecore_wl2_window_focus_skip_set(Ecore_Wl2_Window *window, Eina_Bool focus_skip)
{
EINA_SAFETY_ON_NULL_RETURN(window);
window->focus_skip = focus_skip;
}