aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-03-30 08:34:32 -0400
committerDrew DeVault <sir@cmpwn.com>2016-03-30 08:34:32 -0400
commita12850444d38cc1b00e30adb6dea82b6e2045914 (patch)
tree60b01009710f0379a5ff08f777405ebba93736a3 /include
parent68f4f9b52050e74e6fa53695b3d968e7a902d092 (diff)
downloadsway-a12850444d38cc1b00e30adb6dea82b6e2045914.tar.xz
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.
Diffstat (limited to 'include')
-rw-r--r--include/config.h8
1 files changed, 8 insertions, 0 deletions
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;