diff options
| author | Kenny Levinsen <kl@kl.wtf> | 2024-03-16 00:48:56 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2024-03-28 10:45:20 +0100 |
| commit | 3e03eb3a017d144137dbe6591891f3a51a61dea0 (patch) | |
| tree | 571828cfe9eb98fe524dc55ce115111aa24dbb9b /include | |
| parent | e2f3ebad8c1943800dd5f017d547d9d98bfb8bb1 (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); |
