diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-14 23:05:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-14 23:05:59 +0000 |
| commit | 7fe3301e7ea905a8a76d54c22751f3d8a346e28b (patch) | |
| tree | 8b81be235862807c55393d35eb5830779afeecb1 /src/screen.cc | |
| parent | 299dc47a6b6379bba77fc489ef6825dcfe18faf5 (diff) | |
Add the "obsetroot" tool. Use it to set the root background.
Diffstat (limited to 'src/screen.cc')
| -rw-r--r-- | src/screen.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.cc b/src/screen.cc index 3f507afb..6eaa5cc5 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -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(); |
