summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorMykyta Holubakha <[email protected]>2016-05-07 20:49:51 +0300
committerMykyta Holubakha <[email protected]>2016-05-07 20:49:51 +0300
commit0423c41a0f9f8f84bde80e664e59e33e3b05e3d4 (patch)
tree0f168f873158653f9d42fb94c591b1d2e6450cd7 /sway/config.c
parent6abdc0755945a982638ce2341d2ed1f96a6c5e4e (diff)
Implemented configurable floating scroll behavior
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c4
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) {
list_free(config->active_bar_modifiers);
free_flat_list(config->config_chain);
free(config->font);
+ free(config->fsb_up);
+ free(config->fsb_down);
free(config);
}
@@ -160,6 +162,8 @@ static void config_defaults(struct sway_config *config) {
config->dragging_key = M_LEFT_CLICK;
config->resizing_key = M_RIGHT_CLICK;
config->floating_scroll = FSB_GAPS_INNER;
+ config->fsb_up = strdup("");
+ config->fsb_down = strdup("");
config->default_layout = L_NONE;
config->default_orientation = L_NONE;
config->font = strdup("monospace 10");