aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-09-09 15:28:22 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-09-09 15:28:22 +0200
commit96bba944660350f97f0bce1cf04cabac76d7cb01 (patch)
tree7de29f2f8d0de064dfd3dd7560e66f3c07e39a7e /include
parentff151cc66ec79d4c94af259e1b75c5fbfdf36170 (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