summaryrefslogtreecommitdiffstats
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-03-31 11:13:20 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-03-31 11:13:20 -0400
commitc901510e01f7648a549187b128ed9d0f9c5627eb (patch)
tree2f2b48ef6c0a2f06230e109f777aea5f45633b97 /sway/tree/workspace.c
parentMerge pull request #1678 from emersion/xwayland-xcursor (diff)
downloadsway-c901510e01f7648a549187b128ed9d0f9c5627eb.tar.gz
sway-c901510e01f7648a549187b128ed9d0f9c5627eb.tar.zst
sway-c901510e01f7648a549187b128ed9d0f9c5627eb.zip
Fixes back-and-forth name saving for non-empty ws
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index c629f1f1..de1bf159 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -351,7 +351,7 @@ bool workspace_switch(struct sway_container *workspace) {
351 } 351 }
352 struct sway_container *active_ws = focus; 352 struct sway_container *active_ws = focus;
353 if (active_ws->type != C_WORKSPACE) { 353 if (active_ws->type != C_WORKSPACE) {
354 container_parent(focus, C_WORKSPACE); 354 active_ws = container_parent(focus, C_WORKSPACE);
355 } 355 }
356 356
357 if (config->auto_back_and_forth 357 if (config->auto_back_and_forth