From: Dana Jansens Date: Wed, 22 Jan 2003 23:02:17 +0000 (+0000) Subject: show recursive.. recursively X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=70e2ab8017bc50fc1442f56f2b24ad18f4844686;p=chaz%2Fopenbox show recursive.. recursively --- diff --git a/otk/widget.cc b/otk/widget.cc index 036ed1c3..154fc92c 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -8,7 +8,7 @@ #include "display.hh" #include "assassin.hh" #include "screeninfo.hh" - +#include "focuslabel.hh" #include #include @@ -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(this)) + printf("IM A FOCUSLABEL RENDERING\n"); + renderForeground(); // for inherited types to render onto the _surface XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());