forked from enlightenment/efl
Patch from Juan Zhao <juan.j.zhao@linux.intel.com> to fix correct
usage of HAVE_ELEMENTARY_WAYLAND. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 80301
This commit is contained in:
parent
4e17a72fc7
commit
29dbb8804d
|
@ -5008,6 +5008,7 @@ _xwindow_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
*ret = 0;
|
||||
}
|
||||
|
||||
#if HAVE_ELEMENTARY_WAYLAND
|
||||
EAPI Ecore_Wl_Window *
|
||||
elm_win_wl_window_get(const Evas_Object *obj)
|
||||
{
|
||||
|
@ -5029,7 +5030,6 @@ static void
|
|||
_wl_window_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
|
||||
{
|
||||
Ecore_Wl_Window **ret = va_arg(*list, Ecore_Wl_Window **);
|
||||
#if HAVE_ELEMENTARY_WAYLAND
|
||||
Elm_Win_Smart_Data *sd = _pd;
|
||||
if (sd->wl.win)
|
||||
{
|
||||
|
@ -5041,9 +5041,9 @@ _wl_window_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
|
|||
*ret = elm_win_wl_window_get(sd->parent);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
*ret = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
EAPI Eina_Bool
|
||||
elm_win_trap_set(const Elm_Win_Trap *t)
|
||||
|
|
|
@ -2651,6 +2651,7 @@ EAPI Eina_Bool elm_win_socket_listen(Evas_Object *obj, const char *s
|
|||
*/
|
||||
EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj);
|
||||
|
||||
#ifdef HAVE_ELEMENTARY_WAYLAND
|
||||
/* Wayland specific call - returns NULL on non-Wayland engines */
|
||||
/**
|
||||
* Get the Ecore_Wl_Window of and Evas_Object
|
||||
|
@ -2662,6 +2663,7 @@ EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj);
|
|||
* @ingroup Win
|
||||
*/
|
||||
EAPI Ecore_Wl_Window *elm_win_wl_window_get(const Evas_Object *obj);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @typedef Elm_Win_Trap
|
||||
|
|
Loading…
Reference in New Issue