diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
commit | c685ef081f090d1e15428f55426e02f2274312d0 (patch) | |
tree | e4997c84099e962a0c00a8fea22be30964cecda3 /sway/tree/workspace.c | |
parent | Feedback for fullscreen. (diff) | |
download | sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.gz sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.zst sway-c685ef081f090d1e15428f55426e02f2274312d0.zip |
Create sway_workspace struct.
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 7 |
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, | |||
59 | workspace->layout = container_get_default_layout(output); | 59 | workspace->layout = container_get_default_layout(output); |
60 | workspace->workspace_layout = workspace->layout; | 60 | workspace->workspace_layout = workspace->layout; |
61 | 61 | ||
62 | struct sway_workspace *swayws = calloc(1, sizeof(struct sway_workspace)); | ||
63 | if (!swayws) { | ||
64 | return NULL; | ||
65 | } | ||
66 | swayws->swayc = workspace; | ||
67 | workspace->sway_workspace = swayws; | ||
68 | |||
62 | container_add_child(output, workspace); | 69 | container_add_child(output, workspace); |
63 | container_sort_workspaces(output); | 70 | container_sort_workspaces(output); |
64 | container_create_notify(workspace); | 71 | container_create_notify(workspace); |