diff options
author | Drew DeVault <[email protected]> | 2017-11-11 18:06:50 -0500 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2017-11-11 18:06:50 -0500 |
commit | 0c8491f7d0c735299a25f0ab929f5d1e0866b929 (patch) | |
tree | 69fc808ce6b8ceda33e8fadcf7cbbc10b892ca00 /include/sway/container.h | |
parent | 1efd5f819f9986bf27e390f4988359388606cea0 (diff) |
Initial (awful) pass on xdg shell support
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; extern swayc_t root_container; extern swayc_t *current_focus; +struct sway_view; + /** * Different kinds of containers. * @@ -27,14 +29,6 @@ enum swayc_types { C_TYPES, }; -enum swayc_view_types { - V_WL_SHELL, - V_XDG_SHELL_V6, - V_XWAYLAND, - // Keep last - V_TYPES, -}; - /** * Different ways to arrange a container. */ @@ -76,6 +70,7 @@ struct sway_container { union { struct sway_output *output; + struct sway_view *view; } _handle; /** @@ -207,7 +202,7 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout); * * Pass in a sibling view, or a workspace to become this container's parent. */ -swayc_t *new_view(swayc_t *sibling, wlc_handle handle); +swayc_t *new_view(swayc_t *sibling, struct sway_view *view); /** * Allocates a new floating view in the active workspace. */ |