devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=a6cb5bfe6c67bc381266705fea74d3958c6ece97

commit a6cb5bfe6c67bc381266705fea74d3958c6ece97
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 16 11:24:59 2014 -0400

    add code to handle pending damages during surface commit
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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 1a3f1dc..af528ed 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;
 }

-- 


Reply via email to