summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
Diffstat (limited to 'otk')
-rw-r--r--otk/widget.cc8
1 files changed, 4 insertions, 4 deletions
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;
}