mirror of
https://github.com/swaywm/sway.git
synced 2026-06-13 14:33:19 -04:00
allow multiple same include
This commit makes it possible to include the same config file multiple times.
This commit is contained in:
parent
82821768ea
commit
328373c6e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue