aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2024-09-09 15:28:22 +0200
committerSimon Ser <contact@emersion.fr>2024-09-21 16:16:56 +0200
commita9c295fd6709e788d9b12167a53d2f8c031718f0 (patch)
tree7de29f2f8d0de064dfd3dd7560e66f3c07e39a7e /include
parent3b27392a472bf31b91b50421a92bc53065020701 (diff)
config/output: Accept a list of output_configs to use
Instead of using a single finalized output config per output, accept a regular list of output configs like the one ultimately stored for configuration purposes. This allows the output management code to test an augmented configuration while still using the same output config logic, without having to mutate the stored configuration. This in turn allows us to make a few APIs private. A bug note about an existing issue with derade to off is added as well. (cherry picked from 29b3f00e6fd99296cde7e94b7063acfd075c559c)
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 2f5a17fa..33cebe2a 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -298,14 +298,6 @@ struct output_config {
};
/**
- * An output config pre-matched to an output
- */
-struct matched_output_config {
- struct sway_output *output;
- struct output_config *config;
-};
-
-/**
* Stores size of gaps for each side
*/
struct side_gaps {
@@ -694,14 +686,11 @@ const char *sway_output_scale_filter_to_string(enum scale_filter_mode scale_filt
struct output_config *new_output_config(const char *name);
-bool apply_output_configs(struct matched_output_config *configs,
- size_t configs_len, bool test_only, bool degrade_to_off);
+bool apply_output_configs(struct output_config **ocs, size_t ocs_len,
+ bool test_only, bool degrade_to_off);
void apply_all_output_configs(void);
-void sort_output_configs_by_priority(struct matched_output_config *configs,
- size_t configs_len);
-
/**
* store_output_config stores a new output config. An output may be matched by
* three different config types, in order of precedence: Identifier, name and