summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-03-30 08:34:32 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-03-30 08:34:32 -0400
commita12850444d38cc1b00e30adb6dea82b6e2045914 (patch)
tree60b01009710f0379a5ff08f777405ebba93736a3 /include
parentUpdate README screenshot (diff)
downloadsway-a12850444d38cc1b00e30adb6dea82b6e2045914.tar.gz
sway-a12850444d38cc1b00e30adb6dea82b6e2045914.tar.zst
sway-a12850444d38cc1b00e30adb6dea82b6e2045914.zip
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 {
163 E_BOTH /**< hide vertical and horizontal edge borders */ 163 E_BOTH /**< hide vertical and horizontal edge borders */
164}; 164};
165 165
166enum floating_scroll_behavior {
167 FSB_GAPS_OUTER, /**< Adjust outer gaps */
168 FSB_GAPS_INNER /**< Adjust inner gaps */
169 // Note: in the future I expect to see more things you can do with the scroll
170 // wheel than maniuplating gaps
171};
172
166/** 173/**
167 * The configuration struct. The result of loading a config file. 174 * The configuration struct. The result of loading a config file.
168 */ 175 */
@@ -181,6 +188,7 @@ struct sway_config {
181 uint32_t floating_mod; 188 uint32_t floating_mod;
182 uint32_t dragging_key; 189 uint32_t dragging_key;
183 uint32_t resizing_key; 190 uint32_t resizing_key;
191 enum floating_scroll_behavior floating_scroll; // TODO: command to set this
184 enum swayc_layouts default_orientation; 192 enum swayc_layouts default_orientation;
185 enum swayc_layouts default_layout; 193 enum swayc_layouts default_layout;
186 char *font; 194 char *font;