diff options
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r-- | include/sway/tree/container.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index f0e87fb5..fa22ea75 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -84,12 +84,21 @@ struct sway_container { | |||
84 | 84 | ||
85 | struct { | 85 | struct { |
86 | struct wl_signal destroy; | 86 | struct wl_signal destroy; |
87 | // Raised after the tree updates, but before arrange_windows | ||
88 | // Passed the previous parent | ||
89 | struct wl_signal reparent; | ||
87 | } events; | 90 | } events; |
88 | }; | 91 | }; |
89 | 92 | ||
90 | // TODO make private and use the container-specific create functions | 93 | // TODO make private and use the container-specific create functions |
91 | struct sway_container *container_create(enum sway_container_type type); | 94 | struct sway_container *container_create(enum sway_container_type type); |
92 | 95 | ||
96 | const char *container_type_to_str(enum sway_container_type type); | ||
97 | |||
98 | // TODO only one container create function and pass the type? | ||
99 | struct sway_container *container_output_create( | ||
100 | struct sway_output *sway_output); | ||
101 | |||
93 | /** | 102 | /** |
94 | * Create a new container container. A container container can be a a child of | 103 | * Create a new container container. A container container can be a a child of |
95 | * a workspace container or another container container. | 104 | * a workspace container or another container container. |