X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.cc;h=c09ac4862566e8c8f93d0f4634ff6e7e33a15065;hb=6e2f3f9f8a2b4b83648c9c8b9993d321b3f60a79;hp=9708977d47732ffa03f674eb06c25fa78cf63c1e;hpb=8287fb288943febac397e36eb7674af3f2bb7493;p=chaz%2Fopenbox 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; }