Shm_Surface *surface;
Shm_Pool *pool;
Shm_Data *data;
+ struct wl_shm *shm;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
goto out;
}
- if (!(pool = _shm_pool_create(surface->shm, ((w * sizeof(int)) * h))))
+ shm = ecore_wl2_display_shm_get(s->ob->ewd);
+ if (!(pool = _shm_pool_create(shm, ((w * sizeof(int)) * h))))
{
ERR("Could not create shm pool");
return;
if ((resize) && (!surface->leaf[i].resize_pool))
{
+ struct wl_shm *shm;
+
+ shm = ecore_wl2_display_shm_get(s->ob->ewd);
surface->leaf[i].resize_pool =
- _shm_pool_create(surface->shm, 6 * 1024 * 1024);
+ _shm_pool_create(shm, 6 * 1024 * 1024);
}
if (!_shm_leaf_create(s, &surface->leaf[i], w, h))