aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index 316f01e4..7f3c1903 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -59,6 +59,13 @@ struct sway_container *workspace_create(struct sway_container *output,
workspace->layout = container_get_default_layout(output);
workspace->workspace_layout = workspace->layout;
+ struct sway_workspace *swayws = calloc(1, sizeof(struct sway_workspace));
+ if (!swayws) {
+ return NULL;
+ }
+ swayws->swayc = workspace;
+ workspace->sway_workspace = swayws;
+
container_add_child(output, workspace);
container_sort_workspaces(output);
container_create_notify(workspace);