ecore-evas-wayland: Re-enable interface functions for window get and

type set

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-30 10:58:13 -04:00
parent 4bd535e3a1
commit 0a9861c6aa
1 changed files with 24 additions and 21 deletions

View File

@ -475,13 +475,17 @@ _ecore_evas_wl_common_free(Ecore_Evas *ee)
void void
_ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h) _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
{ {
Ecore_Evas_Engine_Wl_Data *wdata = ee->engine.data; Ecore_Evas_Engine_Wl_Data *wdata;
int orig_w, orig_h; int orig_w, orig_h;
int ow, oh; int ow, oh;
LOGFN(__FILE__, __LINE__, __FUNCTION__); LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ee) return; if (!ee) return;
wdata = ee->engine.data;
if (!wdata) return;
if (w < 1) w = 1; if (w < 1) w = 1;
if (h < 1) h = 1; if (h < 1) h = 1;
@ -1507,29 +1511,28 @@ _ecore_evas_wayland_move(Ecore_Evas *ee, int x, int y)
} }
} }
/* static void */ static void
/* _ecore_evas_wayland_type_set(Ecore_Evas *ee, int type) */ _ecore_evas_wayland_type_set(Ecore_Evas *ee, int type)
/* { */ {
/* Ecore_Evas_Engine_Wl_Data *wdata; */ Ecore_Evas_Engine_Wl_Data *wdata;
/* if (!ee) return; */ if (!ee) return;
/* wdata = ee->engine.data; */ wdata = ee->engine.data;
/* TODO */ ecore_wl2_window_type_set(wdata->win, type);
/* ecore_wl_window_type_set(wdata->win, type); */ }
/* } */
/* static Ecore_Wl2_Window * */ static Ecore_Wl2_Window *
/* _ecore_evas_wayland_window_get(const Ecore_Evas *ee) */ _ecore_evas_wayland_window_get(const Ecore_Evas *ee)
/* { */ {
/* Ecore_Evas_Engine_Wl_Data *wdata; */ Ecore_Evas_Engine_Wl_Data *wdata;
/* if (!(!strncmp(ee->driver, "wayland", 7))) */ if (!(!strncmp(ee->driver, "wayland", 7)))
/* return NULL; */ return NULL;
/* wdata = ee->engine.data; */ wdata = ee->engine.data;
/* return wdata->win; */ return wdata->win;
/* } */ }
#ifdef BUILD_ECORE_EVAS_WAYLAND_EGL #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
static void static void
@ -1570,8 +1573,8 @@ _ecore_evas_wl_interface_new(void)
iface->resize = _ecore_evas_wayland_resize; iface->resize = _ecore_evas_wayland_resize;
iface->move = _ecore_evas_wayland_move; iface->move = _ecore_evas_wayland_move;
/* iface->pointer_set = _ecore_evas_wayland_pointer_set; */ /* iface->pointer_set = _ecore_evas_wayland_pointer_set; */
/* iface->type_set = _ecore_evas_wayland_type_set; */ iface->type_set = _ecore_evas_wayland_type_set;
/* iface->window_get = _ecore_evas_wayland_window_get; */ iface->window_get = _ecore_evas_wayland_window_get;
#ifdef BUILD_ECORE_EVAS_WAYLAND_EGL #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
iface->pre_post_swap_callback_set = iface->pre_post_swap_callback_set =