We don't have to query that deeply to know whether we need to redraw the
buffer or not, we can make that decision in more generic code.
ob = re->generic.ob;
if (ob->ewd != einfo->info.wl2_display)
{
+ if (einfo->info.wl2_display)
+ ob->dirty = EINA_TRUE;
re->generic.ob->ewd = einfo->info.wl2_display;
}
_evas_outbuf_surface_set(ob,
void
_evas_outbuf_surface_set(Outbuf *ob, struct wl_shm *wl_shm, struct zwp_linux_dmabuf_v1 *wl_dmabuf)
{
- if (ob->surface->funcs.surface_set(ob->surface, wl_shm, wl_dmabuf))
- ob->dirty = EINA_TRUE;
+ ob->surface->funcs.surface_set(ob->surface, wl_shm, wl_dmabuf);
}