From 6b150b1ac2e742b296f09105e539cfbf3757b5d5 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 15 Mar 2015 23:30:00 -0400 Subject: [PATCH] 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. --- src/commands.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5