summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <RyanDwyer@users.noreply.github.com>2018-10-02 11:37:33 +1000
committerLibravatar GitHub <noreply@github.com>2018-10-02 11:37:33 +1000
commit183a4b0d6bbd17199d7071bfe5b76feb87838c18 (patch)
treea19bcbc62ff5d4ddcb822914a4f3516c7766406a /include
parentMerge pull request #2739 from RedSoxFan/fix-2653 (diff)
parentHandle border options for gaps (diff)
downloadsway-183a4b0d6bbd17199d7071bfe5b76feb87838c18.tar.gz
sway-183a4b0d6bbd17199d7071bfe5b76feb87838c18.tar.zst
sway-183a4b0d6bbd17199d7071bfe5b76feb87838c18.zip
Merge pull request #2740 from RedSoxFan/gap-borders
Handle gap borders
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index afa65340..64f707f4 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -160,6 +160,7 @@ sway_cmd cmd_scratchpad;
160sway_cmd cmd_seamless_mouse; 160sway_cmd cmd_seamless_mouse;
161sway_cmd cmd_set; 161sway_cmd cmd_set;
162sway_cmd cmd_show_marks; 162sway_cmd cmd_show_marks;
163sway_cmd cmd_smart_borders;
163sway_cmd cmd_smart_gaps; 164sway_cmd cmd_smart_gaps;
164sway_cmd cmd_split; 165sway_cmd cmd_split;
165sway_cmd cmd_splith; 166sway_cmd cmd_splith;
diff --git a/include/sway/config.h b/include/sway/config.h
index eab48aed..98a18b76 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -253,7 +253,8 @@ enum edge_border_types {
253 E_VERTICAL, /**< hide vertical edge borders */ 253 E_VERTICAL, /**< hide vertical edge borders */
254 E_HORIZONTAL, /**< hide horizontal edge borders */ 254 E_HORIZONTAL, /**< hide horizontal edge borders */
255 E_BOTH, /**< hide vertical and horizontal edge borders */ 255 E_BOTH, /**< hide vertical and horizontal edge borders */
256 E_SMART /**< hide both if precisely one window is present in workspace */ 256 E_SMART, /**< hide both if precisely one window is present in workspace */
257 E_SMART_NO_GAPS, /**< hide both if one window and gaps to edge is zero */
257}; 258};
258 259
259enum command_context { 260enum command_context {
@@ -383,6 +384,7 @@ struct sway_config {
383 int border_thickness; 384 int border_thickness;
384 int floating_border_thickness; 385 int floating_border_thickness;
385 enum edge_border_types hide_edge_borders; 386 enum edge_border_types hide_edge_borders;
387 enum edge_border_types saved_edge_borders;
386 388
387 // border colors 389 // border colors
388 struct { 390 struct {