]> Dogcows Code - chaz/openbox/commitdiff
update children first
authorDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 15:04:30 +0000 (15:04 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 15:04:30 +0000 (15:04 +0000)
otk/widget.cc

index 9708977d47732ffa03f674eb06c25fa78cf63c1e..c09ac4862566e8c8f93d0f4634ff6e7e33a15065 100644 (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;
 }
 
This page took 0.026556 seconds and 4 git commands to generate.