mirror of
https://github.com/swaywm/sway.git
synced 2025-04-03 02:47:46 +03:00
output/config: Remove reset_outputs and co.
apply_output_config_to_outputs uses the specified output config to check which outputs to apply to, and to use as backup when no config is found. If any config matches the output, the specified config will be disregarded. The only remaining user of apply_output_config_to_outputs is reset_outputs, which called apply_output_config_to_outputs with either the first stored wildcard config, or a new empty wildcard config. Providing a stored or empty wildcard config is practically the same as calling `apply_all_output_configs`. Replace uses of `reset_outputs` with `apply_all_output_configs` and remove the now unused functions.
This commit is contained in:
parent
56e97b7d60
commit
9becff0ba5
3 changed files with 1 additions and 58 deletions
|
@ -701,10 +701,6 @@ struct output_config *store_output_config(struct output_config *oc);
|
|||
|
||||
struct output_config *find_output_config(struct sway_output *output);
|
||||
|
||||
void apply_output_config_to_outputs(struct output_config *oc);
|
||||
|
||||
void reset_outputs(void);
|
||||
|
||||
void free_output_config(struct output_config *oc);
|
||||
|
||||
bool spawn_swaybg(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue