summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/container.c2
-rw-r--r--sway/layout.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/container.c b/sway/container.c
index d43ee35e..707aa4d8 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -218,7 +218,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) {
218 swayc_t *workspace = new_swayc(C_WORKSPACE); 218 swayc_t *workspace = new_swayc(C_WORKSPACE);
219 219
220 workspace->prev_layout = L_NONE; 220 workspace->prev_layout = L_NONE;
221 workspace->layout = L_HORIZ; 221 workspace->layout = default_layout(output);
222 workspace->workspace_layout = default_layout(output); 222 workspace->workspace_layout = default_layout(output);
223 223
224 workspace->x = output->x; 224 workspace->x = output->x;
diff --git a/sway/layout.c b/sway/layout.c
index 473b74f7..69291daf 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -417,7 +417,7 @@ void move_container(swayc_t *container, enum movement_direction dir, int move_am
417 sway_log(L_DEBUG, "container:%p, parent:%p, child %p,", 417 sway_log(L_DEBUG, "container:%p, parent:%p, child %p,",
418 container,parent,child); 418 container,parent,child);
419 if (parent->layout == layout 419 if (parent->layout == layout
420 || (layout == L_NONE && parent->type == C_CONTAINER) /* accept any layout for next/prev direction */ 420 || (layout == L_NONE && (parent->type == C_CONTAINER || parent->type == C_WORKSPACE)) /* accept any layout for next/prev direction */
421 || (parent->layout == L_TABBED && layout == L_HORIZ) 421 || (parent->layout == L_TABBED && layout == L_HORIZ)
422 || (parent->layout == L_STACKED && layout == L_VERT) 422 || (parent->layout == L_STACKED && layout == L_VERT)
423 || is_auto_layout(parent->layout)) { 423 || is_auto_layout(parent->layout)) {