show recursive.. recursively
This commit is contained in:
parent
033e9843bc
commit
70e2ab8017
1 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
#include "display.hh"
|
#include "display.hh"
|
||||||
#include "assassin.hh"
|
#include "assassin.hh"
|
||||||
#include "screeninfo.hh"
|
#include "screeninfo.hh"
|
||||||
|
#include "focuslabel.hh"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ void Widget::show(bool recursive)
|
||||||
if (recursive) {
|
if (recursive) {
|
||||||
WidgetList::iterator it = _children.begin(), end = _children.end();
|
WidgetList::iterator it = _children.begin(), end = _children.end();
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
(*it)->show();
|
(*it)->show(recursive);
|
||||||
}
|
}
|
||||||
|
|
||||||
XMapWindow(**display, _window);
|
XMapWindow(**display, _window);
|
||||||
|
@ -266,7 +266,9 @@ void Widget::render(void)
|
||||||
_surface = new Surface(_screen, _rect.size());
|
_surface = new Surface(_screen, _rect.size());
|
||||||
display->renderControl(_screen)->drawBackground(*_surface, *_texture);
|
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());
|
XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue