summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-09-07 10:21:27 (GMT)
committerfluxgen <fluxgen>2002-09-07 10:21:27 (GMT)
commit52f1975a113117cb0a2f128bca8c4ffa2e23e102 (patch)
tree4892025fea135d99486b26c96fe2c29dbf155756 /src
parentd262b249da439272bcef60f04834acbaa9e15349 (diff)
downloadfluxbox_lack-52f1975a113117cb0a2f128bca8c4ffa2e23e102.zip
fluxbox_lack-52f1975a113117cb0a2f128bca8c4ffa2e23e102.tar.bz2
fixed save workspace names when adding/removing workspace
Diffstat (limited to 'src')
-rw-r--r--src/Workspacemenu.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc
index 16802f6..134da20 100644
--- a/src/Workspacemenu.cc
+++ b/src/Workspacemenu.cc
@@ -21,7 +21,7 @@
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
23 23
24// $Id: Workspacemenu.cc,v 1.8 2002/08/14 22:57:55 fluxgen Exp $ 24// $Id: Workspacemenu.cc,v 1.9 2002/09/07 10:21:27 fluxgen Exp $
25 25
26#include "Workspacemenu.hh" 26#include "Workspacemenu.hh"
27 27
@@ -60,11 +60,13 @@ Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) {
60 60
61void Workspacemenu::itemSelected(int button, unsigned int index) { 61void Workspacemenu::itemSelected(int button, unsigned int index) {
62 if (button == 1) { 62 if (button == 1) {
63 if (index == 0) 63 if (index == 0) {
64 screen()->addWorkspace(); 64 screen()->addWorkspace();
65 else if (index == 1) 65 Fluxbox::instance()->save_rc();
66 } else if (index == 1) {
66 screen()->removeLastWorkspace(); 67 screen()->removeLastWorkspace();
67 else if ((screen()->getCurrentWorkspace()->workspaceID() != 68 Fluxbox::instance()->save_rc();
69 } else if ((screen()->getCurrentWorkspace()->workspaceID() !=
68 (index - 2)) && ((index - 2) < screen()->getCount())) { 70 (index - 2)) && ((index - 2) < screen()->getCount())) {
69 screen()->changeWorkspaceID(index - 2); 71 screen()->changeWorkspaceID(index - 2);
70 } 72 }