diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 13 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 35f0e708..af5c7a18 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -167,13 +167,12 @@ struct output_config { | |||
167 | }; | 167 | }; |
168 | 168 | ||
169 | /** | 169 | /** |
170 | * Maps a workspace name to an output name. | 170 | * Stores configuration for a workspace, regardless of whether the workspace |
171 | * | 171 | * exists. |
172 | * Set via `workspace <x> output <y>` | ||
173 | */ | 172 | */ |
174 | struct workspace_output { | 173 | struct workspace_config { |
175 | char *output; | ||
176 | char *workspace; | 174 | char *workspace; |
175 | char *output; | ||
177 | }; | 176 | }; |
178 | 177 | ||
179 | struct bar_config { | 178 | struct bar_config { |
@@ -327,7 +326,7 @@ struct sway_config { | |||
327 | list_t *modes; | 326 | list_t *modes; |
328 | list_t *bars; | 327 | list_t *bars; |
329 | list_t *cmd_queue; | 328 | list_t *cmd_queue; |
330 | list_t *workspace_outputs; | 329 | list_t *workspace_configs; |
331 | list_t *output_configs; | 330 | list_t *output_configs; |
332 | list_t *input_configs; | 331 | list_t *input_configs; |
333 | list_t *seat_configs; | 332 | list_t *seat_configs; |
@@ -518,6 +517,8 @@ struct bar_config *default_bar_config(void); | |||
518 | 517 | ||
519 | void free_bar_config(struct bar_config *bar); | 518 | void free_bar_config(struct bar_config *bar); |
520 | 519 | ||
520 | void free_workspace_config(struct workspace_config *wsc); | ||
521 | |||
521 | /** | 522 | /** |
522 | * Updates the value of config->font_height based on the max title height | 523 | * Updates the value of config->font_height based on the max title height |
523 | * reported by each container. If recalculate is true, the containers will | 524 | * reported by each container. If recalculate is true, the containers will |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index e4b616d1..c8220b39 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -48,6 +48,8 @@ struct sway_workspace { | |||
48 | 48 | ||
49 | extern char *prev_workspace_name; | 49 | extern char *prev_workspace_name; |
50 | 50 | ||
51 | struct workspace_config *workspace_find_config(const char *ws_name); | ||
52 | |||
51 | struct sway_output *workspace_get_initial_output(const char *name); | 53 | struct sway_output *workspace_get_initial_output(const char *name); |
52 | 54 | ||
53 | struct sway_workspace *workspace_create(struct sway_output *output, | 55 | struct sway_workspace *workspace_create(struct sway_output *output, |