mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Create sway_workspace struct.
This commit is contained in:
parent
bfd5834f4c
commit
c685ef081f
8 changed files with 28 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue