diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2016-05-07 20:49:51 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2016-05-07 20:49:51 +0300 |
commit | 0423c41a0f9f8f84bde80e664e59e33e3b05e3d4 (patch) | |
tree | 0f168f873158653f9d42fb94c591b1d2e6450cd7 /sway/config.c | |
parent | Merge pull request #638 from neosilky/memleak (diff) | |
download | sway-0423c41a0f9f8f84bde80e664e59e33e3b05e3d4.tar.gz sway-0423c41a0f9f8f84bde80e664e59e33e3b05e3d4.tar.zst sway-0423c41a0f9f8f84bde80e664e59e33e3b05e3d4.zip |
Implemented configurable floating scroll behavior
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 237d8996..15aed11b 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->fsb_up); | ||
135 | free(config->fsb_down); | ||
134 | free(config); | 136 | free(config); |
135 | } | 137 | } |
136 | 138 | ||
@@ -160,6 +162,8 @@ static void config_defaults(struct sway_config *config) { | |||
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 = FSB_GAPS_INNER; |
165 | config->fsb_up = strdup(""); | ||
166 | config->fsb_down = strdup(""); | ||
163 | config->default_layout = L_NONE; | 167 | config->default_layout = L_NONE; |
164 | config->default_orientation = L_NONE; | 168 | config->default_orientation = L_NONE; |
165 | config->font = strdup("monospace 10"); | 169 | config->font = strdup("monospace 10"); |