Merge pull request #1608 from mh21/renaming-empty-ws-startup

Update old_name when renaming current workspace
This commit is contained in:
Michael Stapelberg
2015-03-30 22:01:18 +02:00
2 changed files with 6 additions and 0 deletions

View File

@ -1851,6 +1851,7 @@ void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name) {
!strcasecmp(child->name, old_name));
} else {
workspace = con_get_workspace(focused);
old_name = workspace->name;
}
if (!workspace) {