]> git.sur5r.net Git - i3/i3/commitdiff
Get workspace name when renaming current workspace. 1608/head
authorMichael Hofmann <mh21@mh21.de>
Mon, 30 Mar 2015 06:23:00 +0000 (08:23 +0200)
committerMichael Hofmann <mh21@mh21.de>
Mon, 30 Mar 2015 06:28:36 +0000 (08:28 +0200)
- fixes #1607

src/commands.c

index ea0b90328367c9ec2f935753c96711b0a290c181..589c49ad300af1b91c695606541159ce5debed57 100644 (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) {