diff options
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/container.h | 3 | ||||
-rw-r--r-- | include/sway/tree/view.h | 7 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 9 |
3 files changed, 12 insertions, 7 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 6019602c..da6592b4 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -94,9 +94,6 @@ struct sway_container { | |||
94 | 94 | ||
95 | // The gaps currently applied to the container. | 95 | // The gaps currently applied to the container. |
96 | double current_gaps; | 96 | double current_gaps; |
97 | bool has_gaps; | ||
98 | double gaps_inner; | ||
99 | double gaps_outer; | ||
100 | 97 | ||
101 | struct sway_workspace *workspace; // NULL when hidden in the scratchpad | 98 | struct sway_workspace *workspace; // NULL when hidden in the scratchpad |
102 | struct sway_container *parent; // NULL if container in root of workspace | 99 | struct sway_container *parent; // NULL if container in root of workspace |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 2c7b4c2b..028be536 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -265,6 +265,13 @@ uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, | |||
265 | int height); | 265 | int height); |
266 | 266 | ||
267 | /** | 267 | /** |
268 | * Whether or not the view is the only visible view in its tree. If the view | ||
269 | * is tiling, there may be floating views. If the view is floating, there may | ||
270 | * be tiling views or views in a different floating container. | ||
271 | */ | ||
272 | bool view_is_only_visible(struct sway_view *view); | ||
273 | |||
274 | /** | ||
268 | * Configure the view's position and size based on the container's position and | 275 | * Configure the view's position and size based on the container's position and |
269 | * size, taking borders into consideration. | 276 | * size, taking borders into consideration. |
270 | */ | 277 | */ |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index e4b616d1..efdae5a1 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -32,10 +32,9 @@ struct sway_workspace { | |||
32 | enum sway_container_layout layout; | 32 | enum sway_container_layout layout; |
33 | enum sway_container_layout prev_split_layout; | 33 | enum sway_container_layout prev_split_layout; |
34 | 34 | ||
35 | double current_gaps; | 35 | int current_gaps; |
36 | bool has_gaps; | 36 | int gaps_inner; |
37 | double gaps_inner; | 37 | int gaps_outer; |
38 | double gaps_outer; | ||
39 | 38 | ||
40 | struct sway_output *output; // NULL if no outputs are connected | 39 | struct sway_output *output; // NULL if no outputs are connected |
41 | list_t *floating; // struct sway_container | 40 | list_t *floating; // struct sway_container |
@@ -48,6 +47,8 @@ struct sway_workspace { | |||
48 | 47 | ||
49 | extern char *prev_workspace_name; | 48 | extern char *prev_workspace_name; |
50 | 49 | ||
50 | struct workspace_config *workspace_find_config(const char *ws_name); | ||
51 | |||
51 | struct sway_output *workspace_get_initial_output(const char *name); | 52 | struct sway_output *workspace_get_initial_output(const char *name); |
52 | 53 | ||
53 | struct sway_workspace *workspace_create(struct sway_output *output, | 54 | struct sway_workspace *workspace_create(struct sway_output *output, |