Create sway_workspace struct.

This commit is contained in:
Ryan Dwyer 2018-04-17 09:31:34 +10:00
parent bfd5834f4c
commit c685ef081f
8 changed files with 28 additions and 26 deletions

View file

@ -45,6 +45,7 @@ enum sway_container_border {
struct sway_root;
struct sway_output;
struct sway_workspace;
struct sway_view;
struct sway_container {
@ -52,6 +53,7 @@ struct sway_container {
// TODO: Encapsulate state for other node types as well like C_CONTAINER
struct sway_root *sway_root;
struct sway_output *sway_output;
struct sway_workspace *sway_workspace;
struct sway_view *sway_view;
};
@ -75,9 +77,6 @@ struct sway_container {
// does not include borders or gaps.
double width, height;
// For C_WORKSPACE only
struct sway_view *fullscreen;
list_t *children;
struct sway_container *parent;