From: Michael Hofmann Date: Mon, 30 Mar 2015 06:23:00 +0000 (+0200) Subject: Get workspace name when renaming current workspace. X-Git-Tag: 4.10.2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=483a51a2f296da5b9a94d4fc15cd46f136f9baca;p=i3%2Fi3 Get workspace name when renaming current workspace. - fixes #1607 --- diff --git a/src/commands.c b/src/commands.c index 9b51b3ec..fd43a693 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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) {