diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-05-08 10:27:40 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-05-08 10:27:40 -0700 |
commit | db0e1d6bc138100d351a41191f8e631d0b2b941e (patch) | |
tree | ed2cbb25cb60138bac65178e50ab9cf717dad787 /sway/config.c | |
parent | 6abdc0755945a982638ce2341d2ed1f96a6c5e4e (diff) | |
parent | 0c495eecde82c3b7a2827c713badfd13536f5507 (diff) |
Merge pull request #645 from Hummer12007/floating_scroll
Implement configurable floating scroll behavior
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) { list_free(config->active_bar_modifiers); free_flat_list(config->config_chain); free(config->font); + free(config->floating_scroll_up_cmd); + free(config->floating_scroll_down_cmd); free(config); } @@ -159,7 +161,8 @@ static void config_defaults(struct sway_config *config) { config->floating_mod = 0; config->dragging_key = M_LEFT_CLICK; config->resizing_key = M_RIGHT_CLICK; - config->floating_scroll = FSB_GAPS_INNER; + config->floating_scroll_up_cmd = strdup(""); + config->floating_scroll_down_cmd = strdup(""); config->default_layout = L_NONE; config->default_orientation = L_NONE; config->font = strdup("monospace 10"); |