all repos — fluxbox @ 52f1975a113117cb0a2f128bca8c4ffa2e23e102

custom fork of the fluxbox windowmanager

fixed save workspace names when adding/removing workspace
fluxgen fluxgen
commit

52f1975a113117cb0a2f128bca8c4ffa2e23e102

parent

d262b249da439272bcef60f04834acbaa9e15349

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M src/Workspacemenu.ccsrc/Workspacemenu.cc

@@ -21,7 +21,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspacemenu.cc,v 1.8 2002/08/14 22:57:55 fluxgen Exp $ +// $Id: Workspacemenu.cc,v 1.9 2002/09/07 10:21:27 fluxgen Exp $ #include "Workspacemenu.hh"

@@ -60,11 +60,13 @@

void Workspacemenu::itemSelected(int button, unsigned int index) { if (button == 1) { - if (index == 0) + if (index == 0) { screen()->addWorkspace(); - else if (index == 1) + Fluxbox::instance()->save_rc(); + } else if (index == 1) { screen()->removeLastWorkspace(); - else if ((screen()->getCurrentWorkspace()->workspaceID() != + Fluxbox::instance()->save_rc(); + } else if ((screen()->getCurrentWorkspace()->workspaceID() != (index - 2)) && ((index - 2) < screen()->getCount())) { screen()->changeWorkspaceID(index - 2); }