When we create a wl_surface for the window, set the surface_id field

of the window structure.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-20 14:44:42 +01:00
parent b4af063308
commit 8e92e10088
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ ecore_wl_window_surface_create(Ecore_Wl_Window *win)
if (!win) return NULL;
if (win->surface) return win->surface;
win->surface = wl_compositor_create_surface(_ecore_wl_disp->wl.compositor);
win->surface_id = wl_proxy_get_id((struct wl_proxy *)win->surface);
return win->surface;
}