]> Dogcows Code - chaz/openbox/commitdiff
save the right number of workspaces to the rc when adding/removing one
authorDana Jansens <danakj@orodu.net>
Wed, 29 May 2002 09:11:41 +0000 (09:11 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 29 May 2002 09:11:41 +0000 (09:11 +0000)
src/Screen.cc

index 159e2ae3ee5974d4c9f2995602cf1047f2e5cfb4..23638ae906f3ea86786d8972ca61d50e643bb5c7 100644 (file)
@@ -960,7 +960,7 @@ BlackboxWindow *BScreen::getIcon(unsigned int index) {
 unsigned int BScreen::addWorkspace(void) {
   Workspace *wkspc = new Workspace(this, workspacesList.size());
   workspacesList.push_back(wkspc);
-  saveWorkspaces(getWorkspaceCount() + 1);
+  saveWorkspaces(getWorkspaceCount());
   saveWorkspaceNames();
 
   workspacemenu->insert(wkspc->getName(), wkspc->getMenu(),
@@ -992,7 +992,7 @@ unsigned int BScreen::removeLastWorkspace(void) {
   workspacesList.pop_back();
   delete wkspc;
 
-  saveWorkspaces(getWorkspaceCount() - 1);
+  saveWorkspaces(getWorkspaceCount());
   saveWorkspaceNames();
 
   toolbar->reconfigure();
This page took 0.032919 seconds and 4 git commands to generate.