all repos — openbox @ 70e2ab8017bc50fc1442f56f2b24ad18f4844686

openbox fork - make it a bit more like ryudo

show recursive.. recursively
Dana Jansens danakj@orodu.net
commit

70e2ab8017bc50fc1442f56f2b24ad18f4844686

parent

033e9843bcec8340c9e657fe0f0519f86075424b

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M otk/widget.ccotk/widget.cc

@@ -8,7 +8,7 @@ #include "widget.hh"

#include "display.hh" #include "assassin.hh" #include "screeninfo.hh" - +#include "focuslabel.hh" #include <algorithm> #include <iostream>

@@ -175,7 +175,7 @@

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 @@

_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());