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 f13745ee..9a5e312b 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -58,9 +58,9 @@ enum swayc_border_types { | |||
58 | B_NORMAL, /**< Normal border with title bar */ | 58 | B_NORMAL, /**< Normal border with title bar */ |
59 | }; | 59 | }; |
60 | 60 | ||
61 | struct sway_root; | ||
61 | struct sway_output; | 62 | struct sway_output; |
62 | struct sway_view; | 63 | struct sway_view; |
63 | struct wlr_output_layout; | ||
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Stores information about a container. | 66 | * Stores information about a container. |
@@ -70,7 +70,7 @@ struct wlr_output_layout; | |||
70 | struct sway_container { | 70 | struct sway_container { |
71 | union { | 71 | union { |
72 | // TODO: Encapsulate state for other node types as well like C_CONTAINER | 72 | // TODO: Encapsulate state for other node types as well like C_CONTAINER |
73 | struct wlr_output_layout *output_layout; // C_ROOT | 73 | struct sway_root *sway_root; // C_ROOT |
74 | struct sway_output *sway_output; // C_OUTPUT | 74 | struct sway_output *sway_output; // C_OUTPUT |
75 | struct sway_view *sway_view; // C_VIEW | 75 | struct sway_view *sway_view; // C_VIEW |
76 | }; | 76 | }; |
@@ -137,6 +137,7 @@ swayc_t *new_output(struct sway_output *sway_output); | |||
137 | swayc_t *new_workspace(swayc_t *output, const char *name); | 137 | swayc_t *new_workspace(swayc_t *output, const char *name); |
138 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); | 138 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); |
139 | 139 | ||
140 | swayc_t *destroy_output(swayc_t *output); | ||
140 | swayc_t *destroy_view(swayc_t *view); | 141 | swayc_t *destroy_view(swayc_t *view); |
141 | 142 | ||
142 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); | 143 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); |