aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2024-03-16 01:11:35 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2024-03-28 10:45:20 +0100
commit9becff0ba56ac7da8b1235aa5740fb04414636a2 (patch)
tree9909fa4c64f2f9abace29d6d2a4aad1d49cb8b22 /sway/config.c
parentconfig/output: Remove apply_output_config (diff)
downloadsway-9becff0ba56ac7da8b1235aa5740fb04414636a2.tar.gz
sway-9becff0ba56ac7da8b1235aa5740fb04414636a2.tar.zst
sway-9becff0ba56ac7da8b1235aa5740fb04414636a2.zip
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.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 72fc41e7..f9131e0f 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -532,7 +532,7 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
532 } 532 }
533 sway_switch_retrigger_bindings_for_all(); 533 sway_switch_retrigger_bindings_for_all();
534 534
535 reset_outputs(); 535 apply_all_output_configs();
536 spawn_swaybg(); 536 spawn_swaybg();
537 537
538 config->reloading = false; 538 config->reloading = false;