forked from enlightenment/efl
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:
parent
fae40e995b
commit
d68644c920
|
@ -309,7 +309,7 @@ _shm_leaf_release(Shm_Leaf *leaf)
|
||||||
}
|
}
|
||||||
|
|
||||||
Shm_Surface *
|
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;
|
Shm_Surface *surf;
|
||||||
int i = 0;
|
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->dy = 0;
|
||||||
surf->w = w;
|
surf->w = w;
|
||||||
surf->h = h;
|
surf->h = h;
|
||||||
|
surf->disp = disp;
|
||||||
surf->shm = shm;
|
surf->shm = shm;
|
||||||
surf->surface = surface;
|
surf->surface = surface;
|
||||||
surf->num_buff = num_buff;
|
surf->num_buff = num_buff;
|
||||||
|
|
Loading…
Reference in New Issue