From: Tony Crisci Date: Mon, 16 Mar 2015 03:30:00 +0000 (-0400) Subject: bugfix: workspace rename focus mismatch X-Git-Tag: 4.10.1~46^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b150b1ac2e742b296f09105e539cfbf3757b5d5;p=i3%2Fi3 bugfix: workspace rename focus mismatch 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. --- diff --git a/src/commands.c b/src/commands.c index a3901df4..80f57b81 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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; }