diff options
Diffstat (limited to 'include/sway/container.h')
-rw-r--r-- | include/sway/container.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 09e29291..d46ffa63 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -11,6 +11,8 @@ typedef struct sway_container swayc_t; | |||
11 | extern swayc_t root_container; | 11 | extern swayc_t root_container; |
12 | extern swayc_t *current_focus; | 12 | extern swayc_t *current_focus; |
13 | 13 | ||
14 | struct sway_view; | ||
15 | |||
14 | /** | 16 | /** |
15 | * Different kinds of containers. | 17 | * Different kinds of containers. |
16 | * | 18 | * |
@@ -27,14 +29,6 @@ enum swayc_types { | |||
27 | C_TYPES, | 29 | C_TYPES, |
28 | }; | 30 | }; |
29 | 31 | ||
30 | enum swayc_view_types { | ||
31 | V_WL_SHELL, | ||
32 | V_XDG_SHELL_V6, | ||
33 | V_XWAYLAND, | ||
34 | // Keep last | ||
35 | V_TYPES, | ||
36 | }; | ||
37 | |||
38 | /** | 32 | /** |
39 | * Different ways to arrange a container. | 33 | * Different ways to arrange a container. |
40 | */ | 34 | */ |
@@ -76,6 +70,7 @@ struct sway_container { | |||
76 | 70 | ||
77 | union { | 71 | union { |
78 | struct sway_output *output; | 72 | struct sway_output *output; |
73 | struct sway_view *view; | ||
79 | } _handle; | 74 | } _handle; |
80 | 75 | ||
81 | /** | 76 | /** |
@@ -207,7 +202,7 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout); | |||
207 | * | 202 | * |
208 | * Pass in a sibling view, or a workspace to become this container's parent. | 203 | * Pass in a sibling view, or a workspace to become this container's parent. |
209 | */ | 204 | */ |
210 | swayc_t *new_view(swayc_t *sibling, wlc_handle handle); | 205 | swayc_t *new_view(swayc_t *sibling, struct sway_view *view); |
211 | /** | 206 | /** |
212 | * Allocates a new floating view in the active workspace. | 207 | * Allocates a new floating view in the active workspace. |
213 | */ | 208 | */ |