From bc30ec6dd38974be9cbd277d5a1fbf287e261610 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 8 Mar 2024 12:30:30 +0100 Subject: [PATCH] config/output: deduplicate find_output_config() logic --- sway/config/output.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sway/config/output.c b/sway/config/output.c index 55779771..70a9726a 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -719,9 +719,7 @@ void apply_output_config_to_outputs(struct output_config *oc) { struct sway_output *sway_output, *tmp; wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) { if (output_match_name_or_id(sway_output, oc->name)) { - char id[128]; - output_get_identifier(id, sizeof(id), sway_output); - struct output_config *current = get_output_config(id, sway_output); + struct output_config *current = find_output_config(sway_output); if (!current) { // No stored output config matched, apply oc directly sway_log(SWAY_DEBUG, "Applying oc directly");