From: Dana Jansens Date: Tue, 4 Feb 2003 15:04:30 +0000 (+0000) Subject: update children first X-Git-Tag: openbox-3_0-rc1-RELEASE~2255 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=9e6b0d5a8d0226232802bdece77665b167f98dae;p=mikachu%2Fopenbox.git update children first --- diff --git a/otk/widget.cc b/otk/widget.cc index 9708977d..c09ac486 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -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; }