-void BScreen::addWorkspaceName(const string& name) {
- workspaceNames.push_back(name);
- updateDesktopNames();
-}
-
-
-void BScreen::updateDesktopNames(){
- XAtom::StringVect names;
-
- WorkspaceList::iterator it = workspacesList.begin();
- const WorkspaceList::iterator end = workspacesList.end();
- for (; it != end; ++it)
- names.push_back((*it)->getName());
-
- xatom->setValue(getRootWindow(), XAtom::net_desktop_names,
- XAtom::utf8, names);
-}
-
-
-/*
- * I would love to kill this function and the accompanying workspaceNames
- * list. However, we have a chicken and egg situation. The names are read
- * in during load_rc() which happens before the workspaces are created.
- * The current solution is to read the names into a list, then use the list
- * later for constructing the workspaces. It is only used during initial
- * BScreen creation.
- */
-const string BScreen::getNameOfWorkspace(unsigned int id) {
- if (id < workspaceNames.size())
- return workspaceNames[id];
- return string("");
-}
-
-