diff options
author | emersion <[email protected]> | 2018-10-08 15:08:33 +0200 |
---|---|---|
committer | emersion <[email protected]> | 2018-10-08 15:08:33 +0200 |
commit | c988b03d85e4c747194a682a40ab1b1e309a2fbe (patch) | |
tree | d790dee3ea65f825f16e89453196c74c4512583b /sway/config.c | |
parent | 6cb0e58c6d26efa2bca9b3710df08ed1aea09aea (diff) |
Allow swaybg to be disabled
Same as #2791 but for swaybg.
Fixes #2790
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; |