From 328373c6e19168325c9028ce79ec3a35c0e7afb7 Mon Sep 17 00:00:00 2001 From: carpetoctopus Date: Thu, 30 Apr 2026 19:34:45 +0200 Subject: [PATCH] allow multiple same include This commit makes it possible to include the same config file multiple times. --- sway/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/config.c b/sway/config.c index d579022d3..65984fcd5 100644 --- a/sway/config.c +++ b/sway/config.c @@ -565,7 +565,7 @@ static bool load_include_config(const char *path, struct sway_config *config, } // check if config has already been included - int j; + /*int j; for (j = 0; j < config->config_chain->length; ++j) { char *old_path = config->config_chain->items[j]; if (strcmp(real_path, old_path) == 0) { @@ -575,7 +575,7 @@ static bool load_include_config(const char *path, struct sway_config *config, free(real_path); return false; } - } + }*/ config->current_config_path = real_path; list_add(config->config_chain, real_path);