discomfitor pushed a commit to branch master.

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

commit bce8470cef79d058fe1fcdf3944b431cb20725c8
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Feb 9 20:27:18 2015 -0500

    correctly set/update wl opaque regions
---
 src/bin/e_comp_wl.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 0d0c99f..f96989f 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1030,6 +1030,7 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client 
*client EINA_UNUSED, st
    /* trap for clients which are being deleted */
    if (e_object_is_del(E_OBJECT(ec))) return;
 
+   eina_tiler_clear(ec->comp_data->pending.opaque);
    if (region_resource)
      {
         Eina_Tiler *tmp;
@@ -1040,12 +1041,6 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client 
*client EINA_UNUSED, st
 
         eina_tiler_union(ec->comp_data->pending.opaque, tmp);
      }
-   else
-     {
-        eina_tiler_clear(ec->comp_data->pending.opaque);
-        eina_tiler_rect_add(ec->comp_data->pending.opaque, 
-                            &(Eina_Rectangle){0, 0, ec->client.w, 
ec->client.h});
-     }
 }
 
 static void 

-- 


Reply via email to