diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-03-16 00:48:56 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-03-16 00:48:56 +0100 |
| commit | 621663bd12fb6ac34c44ed5f4baf54a15b456d6a (patch) | |
| tree | 571828cfe9eb98fe524dc55ce115111aa24dbb9b /include | |
| parent | dfaee5e9b97e9bd50600699f214f2607345784c4 (diff) | |
config/output: Introduce apply_output_configs
Introduce apply_output_configs, which applies the specified matched
output configs as a single backend commit.
Reimplement apply_output_config_to_outputs using apply_output_configs.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index f9da1967..d23fe578 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -292,6 +292,14 @@ 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 { @@ -684,6 +692,9 @@ void merge_output_config(struct output_config *dst, struct output_config *src); bool apply_output_config(struct output_config *oc, struct sway_output *output); +bool apply_output_configs(struct matched_output_config *configs, + size_t configs_len, bool test_only); + bool test_output_config(struct output_config *oc, struct sway_output *output); struct output_config *store_output_config(struct output_config *oc); |
