aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-03-30 08:34:32 -0400
committerFurkan Sahin <furkan-dev@proton.me>2016-03-30 08:34:32 -0400
commit0ccf653fb5f6ba86c7b11c9c0c9a03479b1d5ef0 (patch)
tree60b01009710f0379a5ff08f777405ebba93736a3 /include
parent42ac2f4c5f9398861cd556a7980e0eba194b5556 (diff)
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;