oooh and free rects before getting!

SVN revision: 46346
This commit is contained in:
Carsten Haitzler 2010-02-21 16:15:59 +00:00
parent 0d9e03416b
commit 1a705408c8
1 changed files with 6 additions and 0 deletions

View File

@ -433,6 +433,12 @@ _e_mod_comp_win_update(E_Comp_Win *cw)
{
if (cw->shape_changed)
{
if (cw->rects)
{
free(cw->rects);
cw->rects = NULL;
cw->rects_num = 0;
}
ecore_x_pixmap_geometry_get(cw->win, NULL, NULL, &(cw->w), &(cw->h));
cw->rects = ecore_x_window_shape_rectangles_get(cw->win, &(cw->rects_num));
if (cw->rects)