]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercontrol.cc
new scripts for new script structure
[chaz/openbox] / otk / rendercontrol.cc
index 50a00ffa981d100b5a97ef10ba49c38b0d51ae6a..6b664b627b4a50a760dcfcaa6f5b908444519c04 100644 (file)
@@ -60,6 +60,13 @@ RenderControl::~RenderControl()
 
 }
 
+void RenderControl::drawRoot(const RenderColor &color) const
+{
+  Window root = display->screenInfo(_screen)->rootWindow();
+  XSetWindowBackground(**display, root, color.pixel());
+  XClearWindow(**display, root);
+}
+
 void RenderControl::drawString(Surface& sf, const Font &font, int x, int y,
                               const RenderColor &color,
                                const ustring &string) const
This page took 0.021731 seconds and 4 git commands to generate.