diff options
Diffstat (limited to 'include/sway/container.h')
-rw-r--r-- | include/sway/container.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 08a98ed9..b15e0428 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -57,9 +57,9 @@ enum swayc_border_types { | |||
57 | B_NORMAL, /**< Normal border with title bar */ | 57 | B_NORMAL, /**< Normal border with title bar */ |
58 | }; | 58 | }; |
59 | 59 | ||
60 | struct sway_root; | ||
60 | struct sway_output; | 61 | struct sway_output; |
61 | struct sway_view; | 62 | struct sway_view; |
62 | struct wlr_output_layout; | ||
63 | 63 | ||
64 | /** | 64 | /** |
65 | * Stores information about a container. | 65 | * Stores information about a container. |
@@ -69,7 +69,7 @@ struct wlr_output_layout; | |||
69 | struct sway_container { | 69 | struct sway_container { |
70 | union { | 70 | union { |
71 | // TODO: Encapsulate state for other node types as well like C_CONTAINER | 71 | // TODO: Encapsulate state for other node types as well like C_CONTAINER |
72 | struct wlr_output_layout *output_layout; // C_ROOT | 72 | struct sway_root *sway_root; // C_ROOT |
73 | struct sway_output *sway_output; // C_OUTPUT | 73 | struct sway_output *sway_output; // C_OUTPUT |
74 | struct sway_view *sway_view; // C_VIEW | 74 | struct sway_view *sway_view; // C_VIEW |
75 | }; | 75 | }; |
@@ -132,6 +132,7 @@ swayc_t *new_output(struct sway_output *sway_output); | |||
132 | swayc_t *new_workspace(swayc_t *output, const char *name); | 132 | swayc_t *new_workspace(swayc_t *output, const char *name); |
133 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); | 133 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); |
134 | 134 | ||
135 | swayc_t *destroy_output(swayc_t *output); | ||
135 | swayc_t *destroy_view(swayc_t *view); | 136 | swayc_t *destroy_view(swayc_t *view); |
136 | 137 | ||
137 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); | 138 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); |