From d68644c920845c9b8905334d21f6fdbce6b0a560 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 30 Jul 2015 15:11:09 -0400 Subject: [PATCH] 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 --- src/modules/evas/engines/wayland_shm/evas_shm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c index 30f02f8137..705100c42e 100644 --- a/src/modules/evas/engines/wayland_shm/evas_shm.c +++ b/src/modules/evas/engines/wayland_shm/evas_shm.c @@ -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;