Introduce test_output_config

This function checks whether the backend would accept an output
configuration, without applying the changes.
This commit is contained in:
Simon Ser 2020-04-08 11:22:51 +02:00 committed by Drew DeVault
parent 40e87fa98a
commit 0cdcf66bbc
2 changed files with 58 additions and 28 deletions

View file

@ -691,6 +691,8 @@ 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 test_output_config(struct output_config *oc, struct sway_output *output);
struct output_config *store_output_config(struct output_config *oc);
struct output_config *find_output_config(struct sway_output *output);