struct wayland_tbm_client_queue * cqueue = NULL;
struct wl_resource *wl_surface = NULL;
E_Comp_Wl_Data *wl_cdata = (E_Comp_Wl_Data *)e_comp->wl_comp_data;
- E_Comp_Wl_Client_Data *cdata = NULL;
+ E_Comp_Wl_Client_Data *cdata;
EINA_SAFETY_ON_NULL_RETURN_VAL(wl_cdata, NULL);
if (!ec) return NULL;
- cdata = (E_Comp_Wl_Client_Data *)e_pixmap_cdata_get(ec->pixmap);
+ cdata = e_pixmap_cdata_get(ec->pixmap);
if (!cdata) return NULL;
wl_surface = cdata->wl_surface;
static E_Comp_Wl_Buffer *
_comp_wl_buffer_get(E_Client *ec)
{
- E_Comp_Wl_Client_Data *cdata = NULL;
+ E_Comp_Wl_Client_Data *cdata;
if (!ec) return NULL;
- cdata = ec->comp_data;
+ cdata = e_client_cdata_get(ec);
if (!cdata) return NULL;
return cdata->buffer_ref.buffer;
}
else
{
- e_comp_wl_buffer_reference(&ec->comp_data->buffer_ref, backup_buffer);
+ E_Comp_Wl_Client_Data *cdata = e_client_cdata_get(ec);
+ e_comp_wl_buffer_reference(&cdata->buffer_ref, backup_buffer);
e_pixmap_resource_set(ec->pixmap, backup_buffer);
e_pixmap_dirty(ec->pixmap);
e_pixmap_refresh(ec->pixmap);