aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-04-12 18:44:07 +0200
committerKenny Levinsen <kl@kl.wtf>2024-04-13 00:55:28 +0200
commit087226d997c15f4df30542778854999c632642a3 (patch)
tree5bc5480136f1728921fbb7c9790bee9fe727134b
parentf11c5d562e3507a5e8b21491d61a6e43e81e43ad (diff)
config/output: drop fast path in store_output_config()
If there is no output currently connected, we still want to merge to any existing config. It shouldn't matter to iterate over the list of outputs to do nothing anwyays.
-rw-r--r--sway/config/output.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index aab3f0bd..54af5d8e 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -211,10 +211,6 @@ void store_output_config(struct output_config *oc) {
bool merged = false;
bool wildcard = strcmp(oc->name, "*") == 0;
struct sway_output *output = wildcard ? NULL : output_by_name_or_id(oc->name);
- if (!output && !wildcard) {
- // There is no config by this name, just add it in
- goto done;
- }
char id[128];
if (output) {
@@ -249,7 +245,6 @@ void store_output_config(struct output_config *oc) {
}
}
-done:
sway_log(SWAY_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz "
"position %d,%d scale %f subpixel %s transform %d) (bg %s %s) (power %d) "
"(max render time: %d)",