commands: fix layout implementation (also better name for previous split layout)

This commit is contained in:
Ian Fan 2018-08-01 16:03:37 +01:00
parent 3a980857cb
commit 356063b6c0
4 changed files with 30 additions and 21 deletions

View file

@ -59,7 +59,7 @@ struct sway_container *workspace_create(struct sway_container *output,
workspace->width = output->width;
workspace->height = output->height;
workspace->name = !name ? NULL : strdup(name);
workspace->prev_layout = L_NONE;
workspace->prev_split_layout = L_NONE;
workspace->layout = container_get_default_layout(output);
struct sway_workspace *swayws = calloc(1, sizeof(struct sway_workspace));