diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-04-26 17:20:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 17:20:12 -0400 |
commit | 11b4c3454c65375db88901165f0a69c978e3977f (patch) | |
tree | 97fabe0d36c2c5574a2ff47238eeed58fa200fd0 /sway/config.c | |
parent | 3c1fc00f12e2777f6349a5d671b8d66c5997eb2b (diff) | |
parent | 537261f23f194e152c0adf25a2740375929e9cd3 (diff) |
Merge pull request #1196 from SirCmpwn/no_focus
Implement no_focus
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 0014b33a..19b1882f 100644 --- a/sway/config.c +++ b/sway/config.c @@ -249,6 +249,11 @@ void free_config(struct sway_config *config) { } list_free(config->criteria); + for (i = 0; config->no_focus && i < config->no_focus->length; ++i) { + free_criteria(config->no_focus->items[i]); + } + list_free(config->no_focus); + for (i = 0; config->input_configs && i < config->input_configs->length; ++i) { free_input_config(config->input_configs->items[i]); } @@ -291,6 +296,7 @@ static void config_defaults(struct sway_config *config) { if (!(config->workspace_outputs = create_list())) goto cleanup; if (!(config->pid_workspaces = create_list())) goto cleanup; if (!(config->criteria = create_list())) goto cleanup; + if (!(config->no_focus = create_list())) goto cleanup; if (!(config->input_configs = create_list())) goto cleanup; if (!(config->output_configs = create_list())) goto cleanup; |