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.11~158^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F1608%2Fhead;p=i3%2Fi3 Get workspace name when renaming current workspace. - fixes #1607 --- diff --git a/src/commands.c b/src/commands.c index ea0b9032..589c49ad 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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) {