update children first

This commit is contained in:
Dana Jansens 2003-02-04 15:04:30 +00:00
parent 0bc098ca56
commit 9e6b0d5a8d

View file

@ -404,16 +404,16 @@ void Widget::adjustVert(void)
void Widget::update()
{
WidgetList::iterator it = _children.begin(), end = _children.end();
for (; it != end; ++it)
(*it)->update();
if (_dirty) {
adjust();
render();
XClearWindow(**display, _window);
}
WidgetList::iterator it = _children.begin(), end = _children.end();
for (; it != end; ++it)
(*it)->update();
_dirty = false;
}