]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
Add the "obsetroot" tool. Use it to set the root background.
[chaz/openbox] / src / screen.cc
index 3f507afbe51ca89efd06df7edf073d09f1f5f391..6eaa5cc577190461a0ca2fd6022b5705ddfe758e 100644 (file)
@@ -10,6 +10,7 @@
 #include "python.hh"
 #include "otk/display.hh"
 #include "otk/property.hh"
+#include "otk/util.hh"
 
 extern "C" {
 #ifdef    HAVE_UNISTD_H
@@ -68,8 +69,9 @@ Screen::Screen(int screen)
 
   // initialize the screen's style
   otk::RenderStyle::setStyle(_number, _config.theme);
-  otk::display->renderControl(_number)->
-    drawRoot(*otk::RenderStyle::style(_number)->rootColor());
+  // draw the root window
+  otk::bexec("obsetroot " + otk::RenderStyle::style(_number)->rootArgs(),
+             _info->displayString());
 
   // set up notification of netwm support
   changeSupportedAtoms();
This page took 0.020452 seconds and 4 git commands to generate.