Get workspace name when renaming current workspace.

- fixes #1607
This commit is contained in:
Michael Hofmann 2015-03-30 08:23:00 +02:00
parent 54dc87fb83
commit f76e6c2bb1
1 changed files with 1 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) {