summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-07-30 15:11:09 -0400
committerChris Michael <cp.michael@samsung.com>2015-07-30 15:11:09 -0400
commitd68644c920845c9b8905334d21f6fdbce6b0a560 (patch)
treedba45e32844e7ccae66f829dd3bc993682bd091e
parentfae40e995b4fd0a049f231227b2d79aa49393baf (diff)
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>
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c3
1 files changed, 2 insertions, 1 deletions
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)
309} 309}
310 310
311Shm_Surface * 311Shm_Surface *
312_evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha) 312_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)
313{ 313{
314 Shm_Surface *surf; 314 Shm_Surface *surf;
315 int i = 0; 315 int i = 0;
@@ -322,6 +322,7 @@ _evas_shm_surface_create(struct wl_shm *shm, struct wl_surface *surface, int w,
322 surf->dy = 0; 322 surf->dy = 0;
323 surf->w = w; 323 surf->w = w;
324 surf->h = h; 324 surf->h = h;
325 surf->disp = disp;
325 surf->shm = shm; 326 surf->shm = shm;
326 surf->surface = surface; 327 surf->surface = surface;
327 surf->num_buff = num_buff; 328 surf->num_buff = num_buff;