From a12850444d38cc1b00e30adb6dea82b6e2045914 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 30 Mar 2016 08:34:32 -0400 Subject: New feature: adjust gaps with floating_mod+scroll I made this configurable but I didn't make the command for it. That's left as an exercise to an eager contributor. mod_scroll_behavior [gaps inner|gaps outer] Would merge implementions of more behaviors for mod+scroll, if anyone has some neato ideas. --- include/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index fb84423c..0ef8c5bf 100644 --- a/include/config.h +++ b/include/config.h @@ -163,6 +163,13 @@ enum edge_border_types { E_BOTH /**< hide vertical and horizontal edge borders */ }; +enum floating_scroll_behavior { + FSB_GAPS_OUTER, /**< Adjust outer gaps */ + FSB_GAPS_INNER /**< Adjust inner gaps */ + // Note: in the future I expect to see more things you can do with the scroll + // wheel than maniuplating gaps +}; + /** * The configuration struct. The result of loading a config file. */ @@ -181,6 +188,7 @@ struct sway_config { uint32_t floating_mod; uint32_t dragging_key; uint32_t resizing_key; + enum floating_scroll_behavior floating_scroll; // TODO: command to set this enum swayc_layouts default_orientation; enum swayc_layouts default_layout; char *font; -- cgit v1.2.3-54-g00ecf