diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 13865058..fc21b2a9 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include "config.h" | 10 | #include "config.h" |
11 | #include "layout.h" | 11 | #include "layout.h" |
12 | #include "input_state.h" | 12 | #include "input_state.h" |
13 | #include "criteria.h" | ||
13 | 14 | ||
14 | struct sway_config *config = NULL; | 15 | struct sway_config *config = NULL; |
15 | 16 | ||
@@ -66,6 +67,11 @@ static void free_config(struct sway_config *config) { | |||
66 | } | 67 | } |
67 | list_free(config->workspace_outputs); | 68 | list_free(config->workspace_outputs); |
68 | 69 | ||
70 | for (i = 0; i < config->criteria->length; ++i) { | ||
71 | free_criteria(config->criteria->items[i]); | ||
72 | } | ||
73 | list_free(config->criteria); | ||
74 | |||
69 | for (i = 0; i < config->output_configs->length; ++i) { | 75 | for (i = 0; i < config->output_configs->length; ++i) { |
70 | free_output_config(config->output_configs->items[i]); | 76 | free_output_config(config->output_configs->items[i]); |
71 | } | 77 | } |
@@ -82,6 +88,7 @@ static void config_defaults(struct sway_config *config) { | |||
82 | config->symbols = create_list(); | 88 | config->symbols = create_list(); |
83 | config->modes = create_list(); | 89 | config->modes = create_list(); |
84 | config->workspace_outputs = create_list(); | 90 | config->workspace_outputs = create_list(); |
91 | config->criteria = create_list(); | ||
85 | config->output_configs = create_list(); | 92 | config->output_configs = create_list(); |
86 | 93 | ||
87 | config->cmd_queue = create_list(); | 94 | config->cmd_queue = create_list(); |