forked from enlightenment/enlightenment
make wl clients use post render canvas cb to clear buffers
This commit is contained in:
parent
66e4c59764
commit
bc59464f99
|
@ -2580,7 +2580,11 @@ e_comp_wl_surface_commit(E_Client *ec)
|
|||
e_pixmap_dirty(ep);
|
||||
|
||||
/* refresh pixmap */
|
||||
e_pixmap_refresh(ep);
|
||||
if (e_pixmap_refresh(ep))
|
||||
{
|
||||
e_comp->post_updates = eina_list_append(e_comp->post_updates, ec);
|
||||
e_object_ref(E_OBJECT(ec));
|
||||
}
|
||||
|
||||
/* check for any pending attachments */
|
||||
if (ec->comp_data->pending.new_attach)
|
||||
|
|
|
@ -464,10 +464,9 @@ e_pixmap_refresh(E_Pixmap *cp)
|
|||
if (success)
|
||||
{
|
||||
/* if (cp->resource) _e_pixmap_resource_free(cp->resource); */
|
||||
e_pixmap_image_clear(cp, EINA_TRUE);
|
||||
e_pixmap_image_clear(cp, EINA_FALSE);
|
||||
cp->resource = res;
|
||||
_e_pixmap_update_wl(cp);
|
||||
e_pixmap_image_clear(cp, EINA_FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -683,6 +682,7 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
|
|||
{
|
||||
cp->resource_cache =
|
||||
eina_list_append(cp->resource_cache, cp->resource);
|
||||
cp->resource = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue