summaryrefslogtreecommitdiffstats
path: root/include/sway/container.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/container.h')
-rw-r--r--include/sway/container.h5
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
60struct sway_root;
60struct sway_output; 61struct sway_output;
61struct sway_view; 62struct sway_view;
62struct 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;
69struct sway_container { 69struct 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);
132swayc_t *new_workspace(swayc_t *output, const char *name); 132swayc_t *new_workspace(swayc_t *output, const char *name);
133swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); 133swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
134 134
135swayc_t *destroy_output(swayc_t *output);
135swayc_t *destroy_view(swayc_t *view); 136swayc_t *destroy_view(swayc_t *view);
136 137
137swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); 138swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);