summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index ac5b11e..4412d29 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1021,7 +1021,7 @@ void BScreen::updateWorkspaceName(unsigned int w) {
1021 Workspace *space = getWorkspace(w); 1021 Workspace *space = getWorkspace(w);
1022 if (space) { 1022 if (space) {
1023 m_workspace_names[w] = space->name(); 1023 m_workspace_names[w] = space->name();
1024 updateWorkspaceNamesAtom(); 1024 m_workspacenames_sig.notify();
1025 Fluxbox::instance()->save_rc(); 1025 Fluxbox::instance()->save_rc();
1026 } 1026 }
1027} 1027}
@@ -1030,10 +1030,6 @@ void BScreen::removeWorkspaceNames() {
1030 m_workspace_names.clear(); 1030 m_workspace_names.clear();
1031} 1031}
1032 1032
1033void BScreen::updateWorkspaceNamesAtom() {
1034 m_workspacenames_sig.notify();
1035}
1036
1037void BScreen::addIcon(FluxboxWindow *w) { 1033void BScreen::addIcon(FluxboxWindow *w) {
1038 if (w == 0) 1034 if (w == 0)
1039 return; 1035 return;
@@ -1104,14 +1100,16 @@ void BScreen::removeClient(WinClient &client) {
1104 1100
1105int BScreen::addWorkspace() { 1101int BScreen::addWorkspace() {
1106 1102
1107 bool save_name = getNameOfWorkspace(m_workspaces_list.size()) != "" ? false : true; 1103 bool save_name = getNameOfWorkspace(m_workspaces_list.size()) == "";
1108 Workspace *wkspc = new Workspace(*this, 1104 Workspace *wkspc = new Workspace(*this,
1109 getNameOfWorkspace(m_workspaces_list.size()), 1105 getNameOfWorkspace(m_workspaces_list.size()),
1110 m_workspaces_list.size()); 1106 m_workspaces_list.size());
1111 m_workspaces_list.push_back(wkspc); 1107 m_workspaces_list.push_back(wkspc);
1112 1108
1113 if (save_name) 1109 if (save_name) {
1114 addWorkspaceName(wkspc->name().c_str()); //update names 1110 addWorkspaceName(wkspc->name().c_str()); //update names
1111 m_workspacenames_sig.notify();
1112 }
1115 1113
1116 saveWorkspaces(m_workspaces_list.size()); 1114 saveWorkspaces(m_workspaces_list.size());
1117 workspaceCountSig().notify(); 1115 workspaceCountSig().notify();