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
parent 52b279cb85
commit d28940de6e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
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);