The default layout of a workspace should follow the output

Hardcoding it to L_HORIZ does not make sense to me,
as you get the unexpected behaviour that windows will be
arranged horizontally until you switch the layout.
This commit is contained in:
Jarkko Oranen 2017-03-19 16:35:04 +02:00
parent 0fa8b5abfb
commit d7350915d9

View file

@ -218,7 +218,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) {
swayc_t *workspace = new_swayc(C_WORKSPACE);
workspace->prev_layout = L_NONE;
workspace->layout = L_HORIZ;
workspace->layout = default_layout(output);
workspace->workspace_layout = default_layout(output);
workspace->x = output->x;