all repos — openbox @ e3eeac5b6eee29009f3417f309a261d43fd39d27

openbox fork - make it a bit more like ryudo

colors are back
Dana Jansens danakj@orodu.net
commit

e3eeac5b6eee29009f3417f309a261d43fd39d27

parent

9f705c02b9c412c053fc12a2ebdc5cebe83400c8

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

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

@@ -2,6 +2,7 @@ #include "otk.hh"

#include "rendercontrol.hh" #include <stdio.h> +#include <X11/Xlib.h> int main(int argc, char **argv) {

@@ -15,7 +16,9 @@

otk::RenderControl *rc = otk::RenderControl::getRenderControl(0); rc->render(&foo); - + XSetWindowBackgroundPixmap(**otk::display, foo.window(), foo.pixmap()); + XClearWindow(**otk::display, foo.window()); + app.run(); delete rc;
M otk/surface.hhotk/surface.hh

@@ -27,6 +27,7 @@

virtual const Point& size() const { return _size; } virtual int width() const { return _size.x(); } virtual int height() const { return _size.y(); } + virtual Pixmap pixmap() const { return _pm; } // TEMP friend class TrueRenderControl; };