evas-wayland-shm: Set wl_display field inside the Shm_Surface structure

Summary: As we need access to the wl_display in order to dispatch
events on the queue while we wait for free buffers, pass it in to the
surface creation function and set it in the Shm_Surface structure

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-30 15:11:09 -04:00
parent fae40e995b
commit d68644c920
1 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,7 @@ _shm_leaf_release(Shm_Leaf *leaf)
}
Shm_Surface *
_evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha)
_evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha)
{
Shm_Surface *surf;
int i = 0;
@ -322,6 +322,7 @@ _evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *surface, int w,
surf->dy = 0;
surf->w = w;
surf->h = h;
surf->disp = disp;
surf->shm = shm;
surf->surface = surface;
surf->num_buff = num_buff;