]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
set desktop names on startup
[chaz/openbox] / src / screen.cc
index c121c20f582ac5a88ab92f9ea8a4b839a90a1e9a..fcbe2ea6a4991dae3115e0b7f97ae9af84fa77bf 100644 (file)
@@ -93,7 +93,7 @@ OBScreen::OBScreen(int screen)
   // set up notification of netwm support
   setSupportedAtoms();
 
-  // Set the netwm atoms for geomtery and viewport
+  // Set the netwm properties for geometry and viewport
   unsigned long geometry[] = { _info->width(),
                                _info->height() };
   Openbox::instance->property()->set(_info->rootWindow(),
@@ -106,6 +106,11 @@ OBScreen::OBScreen(int screen)
                                      otk::OBProperty::Atom_Cardinal,
                                      viewport, 2);
 
+  // Set the net_desktop_names property
+  std::vector<std::string> names;
+  python_get_stringlist("desktop_names", &names);
+  _root.setDesktopNames(names);
+  
   // create the window which gets focus when no clients get it
   XSetWindowAttributes attr;
   attr.override_redirect = true;
This page took 0.0222 seconds and 4 git commands to generate.