diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index edfd298..73ec8b2 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -830,7 +830,7 @@ void BScreen::reconfigure() { | |||
830 | 830 | ||
831 | // and update their names | 831 | // and update their names |
832 | for(size_t i = 0; i < std::min(m_workspaces_list.size(), resource.workspace_names->size()); ++i) | 832 | for(size_t i = 0; i < std::min(m_workspaces_list.size(), resource.workspace_names->size()); ++i) |
833 | m_workspaces_list[i]->setName( (*resource.workspace_names)[i] ); | 833 | m_workspaces_list[i]->setName( resource.workspace_names.get()[i] ); |
834 | 834 | ||
835 | // update menu filenames | 835 | // update menu filenames |
836 | m_rootmenu->reloadHelper()->setMainFile(fluxbox->getMenuFilename()); | 836 | m_rootmenu->reloadHelper()->setMainFile(fluxbox->getMenuFilename()); |
@@ -870,7 +870,8 @@ void BScreen::reconfigureTabs() { | |||
870 | void BScreen::updateWorkspaceName(unsigned int w) { | 870 | void BScreen::updateWorkspaceName(unsigned int w) { |
871 | Workspace *space = getWorkspace(w); | 871 | Workspace *space = getWorkspace(w); |
872 | if (space) { | 872 | if (space) { |
873 | (*resource.workspace_names)[w] = space->name(); | 873 | resource.workspace_names.get()[w] = space->name(); |
874 | // XXX use resource.workspace_names.modifiedSig() instead | ||
874 | m_workspacenames_sig.emit(*this); | 875 | m_workspacenames_sig.emit(*this); |
875 | Fluxbox::instance()->save_rc(); | 876 | Fluxbox::instance()->save_rc(); |
876 | } | 877 | } |