aboutsummaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c
index 009e98bf..98e22ee3 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -1493,7 +1493,7 @@ void cmd_focus(I3_CMD, bool focus_workspace) {
/* Show the workspace of the matched container, without necessarily
* focusing it. */
LOG("focusing workspace %p / %s - %p / %s\n", current->con, current->con->name, ws, ws->name);
- workspace_show(ws);
+ workspace_show(maybe_auto_back_and_forth_workspace(ws));
} else {
LOG("focusing %p / %s\n", current->con, current->con->name);
con_activate_unblock(current->con);