From 2697c3a596caece936d904a2da82b19dea43737a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 7 Feb 2013 14:39:36 +0000 Subject: [PATCH] also add input rects in for shaped windows which make me cry tears of compblood SVN revision: 83754 --- src/bin/e_comp.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index a765f2e86..1edcf38a3 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -3344,6 +3344,29 @@ _e_comp_shapes_update_job(E_Comp *c) else if (cw->menu) INF("COMP MENU: %u", cw->win); #endif + + if (cw->rects) + { + int num; + Ecore_X_Rectangle *rect; + + for (num = 0, rect = cw->rects; num < cw->rects_num; num++, rect++) + { + x = rect->x, y = rect->y, w = rect->width, h = rect->height; + if (cw->bd) + x += cw->bd->x, y += cw->bd->y; + else + x += cw->x, y += cw->y; +//#ifdef SHAPE_DEBUG not sure we can shape check these? + //r = E_NEW(Eina_Rectangle, 1); + //EINA_RECTANGLE_SET(r, x, y, w, h); + //rl = eina_list_append(rl, r); +//#endif + eina_tiler_rect_del(tb, &(Eina_Rectangle){x, y, w, h}); + SHAPE_INF("DEL: %d,%d@%dx%d", x, y, w, h); + } + continue; + } /* borders and popups sometimes call shape changes before the changes have * propagated to the comp_win :/ */