summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-04 02:03:30 +0000
committerDana Jansens <danakj@orodu.net>2003-01-04 02:03:30 +0000
commit8d5bd298540b98eb10072c5ee281c64f221ce9a6 (patch)
tree892d214346d09221001696d5752390f8985b9407 /src/screen.cc
parent0c96f0fc8980143213fb4b15950ab806b6da634d (diff)
set desktop names on startup
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screen.cc b/src/screen.cc
index c121c20f..fcbe2ea6 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -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;