aboutsummaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-11-04 11:48:23 +0100
committerOrestis Floros <orestisflo@gmail.com>2023-11-04 11:48:23 +0100
commit723039805941148e10fbe5f80034cdab7741d4f8 (patch)
tree7b87e03927b649c94561efcf6dd1ecdfb8d02c2f /src/commands.c
parent1da50c4ae0ef642ade452b236ecd89e9937b721f (diff)
downloadi3-fix-i3bar-back-forth.tar.gz
i3-fix-i3bar-back-forth.zip
focus workspace: consider workspace_auto_back_and_forthfix-i3bar-back-forth
Additionally, adds some tests for the command. Fixes #5744
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);