X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Farea.c;h=827e118a40e7fe41f9cd846e7816bb18487ba560;hb=b4a0127130213dba32519e1b478257228aa4dc10;hp=8c40aa667a339ab8f7556566e9608b53f24fe5cb;hpb=9f16bbd6cc603cbbb6e6cbd55299ce48641fa5bb;p=chaz%2Ftint2 diff --git a/src/util/area.c b/src/util/area.c index 8c40aa6..827e118 100644 --- a/src/util/area.c +++ b/src/util/area.c @@ -72,13 +72,16 @@ void size (Area *a) if (a->resize) { a->resize = 0; - for (l = a->list; l ; l = l->next) - size(l->data); + // force the resize of childs + for (l = a->list; l ; l = l->next) { + Area *area = (Area*)l->data; + area->resize = 1; + size(area); + } // resize can generate a redraw - if (a->_resize) { + if (a->_resize) a->_resize(a); - } } }