diff options
author | emersion <[email protected]> | 2018-10-08 15:50:56 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-10-08 15:50:56 +0200 |
commit | 45f2cd0c73cb21bea6ae27bd396cd3721f3cd41a (patch) | |
tree | 8fdc0a2cf97e16d129c893841a32081903804a98 /sway/config.c | |
parent | 1c1fbd49db9a493af8101792ceede5f035724a6d (diff) | |
parent | ab3a397d58898045c3461bbdca8f48361ccfb8f4 (diff) |
Merge pull request #2793 from emersion/disable-swaybg
Allow swaybg to be disabled
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 8f8ed438..7f29347a 100644 --- a/sway/config.c +++ b/sway/config.c @@ -136,6 +136,7 @@ void free_config(struct sway_config *config) { free(config->floating_scroll_left_cmd); free(config->floating_scroll_right_cmd); free(config->font); + free(config->swaybg_command); free((char *)config->current_config_path); free((char *)config->current_config); free(config); @@ -240,6 +241,8 @@ static void config_defaults(struct sway_config *config) { if (!(config->active_bar_modifiers = create_list())) goto cleanup; + if (!(config->swaybg_command = strdup("swaybg"))) goto cleanup; + if (!(config->config_chain = create_list())) goto cleanup; config->current_config_path = NULL; config->current_config = NULL; |