]> Dogcows Code - chaz/openbox/commitdiff
show recursive.. recursively
authorDana Jansens <danakj@orodu.net>
Wed, 22 Jan 2003 23:02:17 +0000 (23:02 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 22 Jan 2003 23:02:17 +0000 (23:02 +0000)
otk/widget.cc

index 036ed1c3d5c4f16f8e4991643915f1abcb4356cb..154fc92cd6faa698a1fcbde220634873a4981581 100644 (file)
@@ -8,7 +8,7 @@
 #include "display.hh"
 #include "assassin.hh"
 #include "screeninfo.hh"
-
+#include "focuslabel.hh"
 #include <algorithm>
 #include <iostream>
 
@@ -175,7 +175,7 @@ void Widget::show(bool recursive)
   if (recursive) {
     WidgetList::iterator it = _children.begin(), end = _children.end();
     for (; it != end; ++it)
-      (*it)->show();
+      (*it)->show(recursive);
   }
 
   XMapWindow(**display, _window);
@@ -266,7 +266,9 @@ void Widget::render(void)
   _surface = new Surface(_screen, _rect.size());
   display->renderControl(_screen)->drawBackground(*_surface, *_texture);
 
-  renderForeground();
+  if (dynamic_cast<FocusLabel*>(this))
+    printf("IM A FOCUSLABEL RENDERING\n");
+  renderForeground(); // for inherited types to render onto the _surface
 
   XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());
 
This page took 0.024269 seconds and 4 git commands to generate.