aboutsummaryrefslogtreecommitdiffstats
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 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
61struct sway_root;
61struct sway_output; 62struct sway_output;
62struct sway_view; 63struct sway_view;
63struct 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;
70struct sway_container { 70struct 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);
137swayc_t *new_workspace(swayc_t *output, const char *name); 137swayc_t *new_workspace(swayc_t *output, const char *name);
138swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); 138swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
139 139
140swayc_t *destroy_output(swayc_t *output);
140swayc_t *destroy_view(swayc_t *view); 141swayc_t *destroy_view(swayc_t *view);
141 142
142swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); 143swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);