]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercontrol.cc
allow for ignoring x errors.
[chaz/openbox] / otk / rendercontrol.cc
index 90229d88c7db765ff98398a9e82338ec583a6485..8046398e304fa7dad3ca5cefeaed4ae44be20675 100644 (file)
@@ -19,7 +19,7 @@ extern "C" {
 #  include <stdlib.h>
 #endif // HAVE_STDLIB_H
 
-#include "gettext.h"
+#include "../src/gettext.h"
 #define _(str) gettext(str)
 }
 
@@ -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
@@ -99,7 +106,6 @@ void RenderControl::drawString(Surface& sf, const Font &font, int x, int y,
   else
     XftDrawString8(d, &c, font._xftfont, x, font._xftfont->ascent + y,
                    (FcChar8*)string.c_str(), string.bytes());
-
   return;
 }
 
This page took 0.026718 seconds and 4 git commands to generate.