aboutsummaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-01 13:36:36 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-25 00:00:49 +0200
commit8d700fe008ccf9f7eb4664e236277c9f30a449fb (patch)
treefb9f36de0acca621a6995db59c52cf3eb2002770 /sway/focus.c
parentTabbed and stacked layout (diff)
downloadsway-8d700fe008ccf9f7eb4664e236277c9f30a449fb.tar.gz
sway-8d700fe008ccf9f7eb4664e236277c9f30a449fb.tar.zst
sway-8d700fe008ccf9f7eb4664e236277c9f30a449fb.zip
Fix problems with floating windows
Makes any tabbed/stacked layout a container to separate from floating windows which may be attached to a workspace.
Diffstat (limited to 'sway/focus.c')
-rw-r--r--sway/focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c
index 8acdc772..8ce22456 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -149,7 +149,7 @@ bool set_focused_container(swayc_t *c) {
149 } 149 }
150 150
151 // rearrange if parent container is tabbed/stacked 151 // rearrange if parent container is tabbed/stacked
152 if (p->parent->layout == L_TABBED || p->parent->layout == L_STACKED) { 152 if (swayc_is_tabbed_stacked(p)) {
153 arrange_windows(p->parent, -1, -1); 153 arrange_windows(p->parent, -1, -1);
154 } 154 }
155 } else if (p->type == C_WORKSPACE) { 155 } else if (p->type == C_WORKSPACE) {