From dcffab5c8289b7e3323cde47a07d8a80cb137a12 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 4 Nov 2014 10:23:31 -0500 Subject: [PATCH] e-comp-wl: Clip shape rectangles to client size Signed-off-by: Chris Michael --- 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 ff5a05182..28ee3b707 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);