X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.cc;h=9ff1f2b7a14414ce24adbcb86d943edf8512f2b9;hb=99cd843fc6dc7a7f55b6c90fd1162f233853aad2;hp=c42ceeea8f494367d13462e0f393bdc15513075d;hpb=f6085d780192b805ef61678cdc0935a917cc2b3f;p=chaz%2Fopenbox diff --git a/src/screen.cc b/src/screen.cc index c42ceeea..9ff1f2b7 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -64,8 +64,10 @@ Screen::Screen(int screen) _managed = !::running; if (! _managed) return; // was unable to manage the screen +#ifdef DEBUG printf(_("Managing screen %d: visual 0x%lx, depth %d\n"), _number, XVisualIDFromVisual(_info->visual()), _info->depth()); +#endif otk::Property::set(_info->rootWindow(), otk::Property::atoms.openbox_pid, otk::Property::atoms.cardinal, (unsigned long) getpid()); @@ -77,7 +79,7 @@ Screen::Screen(int screen) // XXX: initialize the screen's style /* otk::ustring stylepath; - python_get_string("theme", &stylepath); + python_get_string("THEME", &stylepath); otk::Configuration sconfig(false); sconfig.setFile(otk::expandTilde(stylepath.c_str())); if (!sconfig.load()) { @@ -103,7 +105,7 @@ Screen::Screen(int screen) // Set the net_desktop_names property std::vector names; - python_get_stringlist("desktop_names", &names); + python_get_stringlist("DESKTOP_NAMES", &names); otk::Property::set(_info->rootWindow(), otk::Property::atoms.net_desktop_names, otk::Property::utf8, names); @@ -112,7 +114,7 @@ Screen::Screen(int screen) _desktop = 0; - if (!python_get_long("number_of_desktops", &_num_desktops)) + if (!python_get_long("NUMBER_OF_DESKTOPS", &_num_desktops)) _num_desktops = 1; changeNumDesktops(_num_desktops); // set the hint