devilhorns pushed a commit to branch master.

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

commit dcffab5c8289b7e3323cde47a07d8a80cb137a12
Author: Chris Michael <[email protected]>
Date:   Tue Nov 4 10:23:31 2014 -0500

    e-comp-wl: Clip shape rectangles to client size
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index ff5a051..28ee3b7 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -2475,6 +2475,9 @@ e_comp_wl_surface_commit(E_Client *ec)
                {
                   EINA_ITERATOR_FOREACH(itr, rect)
                     {
+                       E_RECTS_CLIP_TO_RECT(rect->x, rect->y, rect->w, 
rect->h, 
+                                            0, 0, ec->client.w, ec->client.h);
+
                        ec->shape_rects[i] = *(Eina_Rectangle *)((char *)rect);
 
                        ec->shape_rects[i].x = rect->x;
@@ -2484,6 +2487,8 @@ e_comp_wl_surface_commit(E_Client *ec)
 
                        i++;
                     }
+
+                  ec->need_shape_export = EINA_TRUE;
                }
 
              eina_iterator_free(itr);
@@ -2531,6 +2536,9 @@ e_comp_wl_surface_commit(E_Client *ec)
                {
                   EINA_ITERATOR_FOREACH(itr, rect)
                     {
+                       E_RECTS_CLIP_TO_RECT(rect->x, rect->y, rect->w, 
rect->h, 
+                                            0, 0, ec->client.w, ec->client.h);
+
                        ec->shape_input_rects[i] = 
                          *(Eina_Rectangle *)((char *)rect);
 

-- 


Reply via email to