forked from enlightenment/efl
ecore-wl2: Add API function to find a window by id
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
90217c80fc
commit
fda3c80ee0
|
@ -369,6 +369,9 @@ EAPI void ecore_wl2_window_resize(Ecore_Wl2_Window *window, int w, int h, int lo
|
||||||
*/
|
*/
|
||||||
EAPI void ecore_wl2_window_raise(Ecore_Wl2_Window *window);
|
EAPI void ecore_wl2_window_raise(Ecore_Wl2_Window *window);
|
||||||
|
|
||||||
|
/* TODO: doxy */
|
||||||
|
EAPI Ecore_Wl2_Window *ecore_wl2_window_find(Ecore_Wl2_Display *display, int id);
|
||||||
|
|
||||||
/* # ifdef __cplusplus */
|
/* # ifdef __cplusplus */
|
||||||
/* } */
|
/* } */
|
||||||
/* # endif */
|
/* # endif */
|
||||||
|
|
|
@ -480,3 +480,16 @@ ecore_wl2_window_raise(Ecore_Wl2_Window *window)
|
||||||
if (window->wl_shell_surface)
|
if (window->wl_shell_surface)
|
||||||
wl_shell_surface_set_toplevel(window->wl_shell_surface);
|
wl_shell_surface_set_toplevel(window->wl_shell_surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Ecore_Wl2_Window *
|
||||||
|
ecore_wl2_window_find(Ecore_Wl2_Display *display, int id)
|
||||||
|
{
|
||||||
|
Ecore_Wl2_Window *window;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
|
||||||
|
|
||||||
|
EINA_INLIST_FOREACH(display->windows, window)
|
||||||
|
if (window->id == id) return window;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue