From a6cb5bfe6c67bc381266705fea74d3958c6ece97 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 16 Oct 2014 11:24:59 -0400 Subject: [PATCH] add code to handle pending damages during surface commit Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 1a3f1dc77..af528edff 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -902,6 +902,7 @@ EINTERN Eina_Bool e_comp_wl_surface_commit(E_Client *ec) { E_Pixmap *ep; + Eina_Rectangle *dmg; if (!(ep = ec->pixmap)) return EINA_FALSE; @@ -961,5 +962,15 @@ e_comp_wl_surface_commit(E_Client *ec) /* TODO: Handle pending regions */ + /* commit any pending damages */ + if ((!ec->comp->nocomp) && (ec->frame)) + { + EINA_LIST_FREE(ec->comp_data->pending.damages, dmg) + { + e_comp_object_damage(ec->frame, dmg->x, dmg->y, dmg->w, dmg->h); + eina_rectangle_free(dmg); + } + } + return EINA_TRUE; }