diff options
author | Orestis Floros <orestisflo@gmail.com> | 2023-11-05 11:08:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 11:08:44 +0100 |
commit | 69f68dcd74df1ef306c3459558363d48fdda87d2 (patch) | |
tree | 58c0a11a9e14c12c0be2bb1a3f3b74a598d5b475 /src | |
parent | a36618f96cf0f4955a6937e2d90818afa3233d9a (diff) | |
download | i3-69f68dcd74df1ef306c3459558363d48fdda87d2.tar.gz i3-69f68dcd74df1ef306c3459558363d48fdda87d2.zip |
focus workspace: consider workspace_auto_back_and_forth (#5754)
Additionally, adds some tests for the command.
Fixes #5744
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 2 |
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); |