From 289e5e793adce2f8161c3b4158458be5f0a22d82 Mon Sep 17 00:00:00 2001 From: Paul Riou Date: Fri, 15 Jan 2021 00:13:27 +0000 Subject: [PATCH] config: Use output_name_cmp instead of strcmp Might as well use that function in case it needs handling special cases in the future. --- sway/config/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/config/output.c b/sway/config/output.c index b59cabd4..d4d0a6cd 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -615,7 +615,7 @@ void apply_output_config_to_outputs(struct output_config *oc) { wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) { char *name = sway_output->wlr_output->name; output_get_identifier(id, sizeof(id), sway_output); - if (wildcard || !strcmp(name, oc->name) || !strcmp(id, oc->name)) { + if (wildcard || !output_name_cmp(oc, name) || !output_name_cmp(oc, id)) { struct output_config *current = get_output_config(id, sway_output); if (!current) { // No stored output config matched, apply oc directly