diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 237d8996..6c1d21c8 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -131,6 +131,8 @@ void free_config(struct sway_config *config) { | |||
131 | list_free(config->active_bar_modifiers); | 131 | list_free(config->active_bar_modifiers); |
132 | free_flat_list(config->config_chain); | 132 | free_flat_list(config->config_chain); |
133 | free(config->font); | 133 | free(config->font); |
134 | free(config->floating_scroll_up_cmd); | ||
135 | free(config->floating_scroll_down_cmd); | ||
134 | free(config); | 136 | free(config); |
135 | } | 137 | } |
136 | 138 | ||
@@ -159,7 +161,8 @@ static void config_defaults(struct sway_config *config) { | |||
159 | config->floating_mod = 0; | 161 | config->floating_mod = 0; |
160 | config->dragging_key = M_LEFT_CLICK; | 162 | config->dragging_key = M_LEFT_CLICK; |
161 | config->resizing_key = M_RIGHT_CLICK; | 163 | config->resizing_key = M_RIGHT_CLICK; |
162 | config->floating_scroll = FSB_GAPS_INNER; | 164 | config->floating_scroll_up_cmd = strdup(""); |
165 | config->floating_scroll_down_cmd = strdup(""); | ||
163 | config->default_layout = L_NONE; | 166 | config->default_layout = L_NONE; |
164 | config->default_orientation = L_NONE; | 167 | config->default_orientation = L_NONE; |
165 | config->font = strdup("monospace 10"); | 168 | config->font = strdup("monospace 10"); |