Get workspace name when renaming current workspace.

- fixes #1607
This commit is contained in:
Michael Hofmann 2015-03-30 08:23:00 +02:00 committed by Michael Stapelberg
parent 29e8167cda
commit 483a51a2f2
1 changed files with 1 additions and 0 deletions

View File

@ -1836,6 +1836,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) {