|
|
@ -137,6 +137,7 @@ void free_config(struct sway_config *config) {
|
|
|
|
free(config->floating_scroll_right_cmd);
|
|
|
|
free(config->floating_scroll_right_cmd);
|
|
|
|
free(config->font);
|
|
|
|
free(config->font);
|
|
|
|
free(config->swaybg_command);
|
|
|
|
free(config->swaybg_command);
|
|
|
|
|
|
|
|
free(config->swaynag_command);
|
|
|
|
free((char *)config->current_config_path);
|
|
|
|
free((char *)config->current_config_path);
|
|
|
|
free((char *)config->current_config);
|
|
|
|
free((char *)config->current_config);
|
|
|
|
free(config);
|
|
|
|
free(config);
|
|
|
@ -167,7 +168,7 @@ static void set_color(float dest[static 4], uint32_t color) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void config_defaults(struct sway_config *config) {
|
|
|
|
static void config_defaults(struct sway_config *config) {
|
|
|
|
config->swaynag_command = strdup("swaynag");
|
|
|
|
if (!(config->swaynag_command = strdup("swaynag"))) goto cleanup;
|
|
|
|
config->swaynag_config_errors = (struct swaynag_instance){
|
|
|
|
config->swaynag_config_errors = (struct swaynag_instance){
|
|
|
|
.args = "--type error "
|
|
|
|
.args = "--type error "
|
|
|
|
"--message 'There are errors in your config file' "
|
|
|
|
"--message 'There are errors in your config file' "
|
|
|
|