aboutsummaryrefslogtreecommitdiff
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 {
B_NORMAL, /**< Normal border with title bar */
};
+struct sway_root;
struct sway_output;
struct sway_view;
-struct wlr_output_layout;
/**
* Stores information about a container.
@@ -70,7 +70,7 @@ struct wlr_output_layout;
struct sway_container {
union {
// TODO: Encapsulate state for other node types as well like C_CONTAINER
- struct wlr_output_layout *output_layout; // C_ROOT
+ struct sway_root *sway_root; // C_ROOT
struct sway_output *sway_output; // C_OUTPUT
struct sway_view *sway_view; // C_VIEW
};
@@ -137,6 +137,7 @@ swayc_t *new_output(struct sway_output *sway_output);
swayc_t *new_workspace(swayc_t *output, const char *name);
swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
+swayc_t *destroy_output(swayc_t *output);
swayc_t *destroy_view(swayc_t *view);
swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);