]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: workspace rename focus mismatch 1551/head
authorTony Crisci <tony@dubstepdish.com>
Mon, 16 Mar 2015 03:30:00 +0000 (23:30 -0400)
committerTony Crisci <tony@dubstepdish.com>
Mon, 16 Mar 2015 03:30:00 +0000 (23:30 -0400)
When renaming a workspace on another output that moves the workspace to
the current output, the renamed workspace would be shown even though it
does not contain the focused container.

Explicitly show the focused workspace after the move. This is necessary
because `workspace_move_to_output` will show the workspace that is
moved.

src/commands.c

index a3901df4f142360c582c074abbdb6b29fa0554a6..80f57b810ba1f9c7b8cb941ca79d4873b20f2521 100644 (file)
@@ -1919,6 +1919,10 @@ void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name) {
         }
 
         workspace_move_to_output(workspace, assignment->output);
+
+        if (previously_focused)
+            workspace_show(con_get_workspace(previously_focused));
+
         break;
     }