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.
This commit is contained in:
Tony Crisci 2015-03-15 23:30:00 -04:00
parent cd48bcf2a5
commit 6b150b1ac2
1 changed files with 4 additions and 0 deletions

View 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;
}