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
commit94282d0b62eeaabff98f6a9420b01248931444c5 (patch)
tree21b722b97fcb4ce13fc28f3e08f213a61d6a5ee2 /include
parentae77456f465034eba24d38dac040955c85a277f4 (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.
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 d9f56157..f8007c92 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -297,14 +297,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 {
@@ -693,14 +685,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