summaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c
index 0a89f634..0a75643d 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -150,6 +150,7 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) {
150 // give them proper layouts 150 // give them proper layouts
151 cont->layout = workspace->layout; 151 cont->layout = workspace->layout;
152 workspace->layout = layout; 152 workspace->layout = layout;
153 set_focused_container_for(workspace, get_focused_view(workspace));
153 } else { // Or is built around container 154 } else { // Or is built around container
154 swayc_t *parent = replace_child(child, cont); 155 swayc_t *parent = replace_child(child, cont);
155 if (parent) { 156 if (parent) {