update children first
This commit is contained in:
parent
0bc098ca56
commit
9e6b0d5a8d
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue