]> git.sur5r.net Git - i3/i3/commitdiff
Get workspace name when renaming current workspace.
authorMichael Hofmann <mh21@mh21.de>
Mon, 30 Mar 2015 06:23:00 +0000 (08:23 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 6 Apr 2015 13:43:36 +0000 (15:43 +0200)
- fixes #1607

src/commands.c

index 9b51b3ecc7cba9d7561819d77a42519fd757d142..fd43a693bf26eb2102a39b5e8b8d8917a01eaaa3 100644 (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) {