commit 2a8985a3451f8be7e4b1eb21e3266e9f5b979b39
parent 7e3aa1daa8b945b762d98bc67c660cdc6c94b72f
Author: emersion <contact@emersion.fr>
Date: Mon, 2 Apr 2018 12:28:08 -0400
Merge pull request #1697 from RedSoxFan/back-and-forth
Fix back-and-forth workspace name saving for non-empty workspaces
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
@@ -351,7 +351,7 @@ bool workspace_switch(struct sway_container *workspace) {
}
struct sway_container *active_ws = focus;
if (active_ws->type != C_WORKSPACE) {
- container_parent(focus, C_WORKSPACE);
+ active_ws = container_parent(focus, C_WORKSPACE);
}
if (config->auto_back_and_forth