aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2019-11-04 15:10:40 -0700
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-11-04 21:16:27 -0500
commit3975ca28c2e870eb3f40bbd43a90354743f7ccf1 (patch)
treed35aa9aa8b0c17e94fb24359a13ab83547cafae5 /include/sway/config.h
parentAdd --custom to `output mode` command (diff)
downloadsway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.gz
sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.zst
sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.zip
smart_borders: separate smartness from edge types
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 3dedbec8..8c93c20d 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -334,8 +334,12 @@ enum edge_border_types {
334 E_VERTICAL, /**< hide vertical edge borders */ 334 E_VERTICAL, /**< hide vertical edge borders */
335 E_HORIZONTAL, /**< hide horizontal edge borders */ 335 E_HORIZONTAL, /**< hide horizontal edge borders */
336 E_BOTH, /**< hide vertical and horizontal edge borders */ 336 E_BOTH, /**< hide vertical and horizontal edge borders */
337 E_SMART, /**< hide both if precisely one window is present in workspace */ 337};
338 E_SMART_NO_GAPS, /**< hide both if one window and gaps to edge is zero */ 338
339enum edge_border_smart_types {
340 ESMART_OFF,
341 ESMART_ON, /**< hide edges if precisely one window is present in workspace */
342 ESMART_NO_GAPS, /**< hide edges if one window and gaps to edge is zero */
339}; 343};
340 344
341enum sway_popup_during_fullscreen { 345enum sway_popup_during_fullscreen {
@@ -510,7 +514,7 @@ struct sway_config {
510 int border_thickness; 514 int border_thickness;
511 int floating_border_thickness; 515 int floating_border_thickness;
512 enum edge_border_types hide_edge_borders; 516 enum edge_border_types hide_edge_borders;
513 enum edge_border_types saved_edge_borders; 517 enum edge_border_smart_types hide_edge_borders_smart;
514 bool hide_lone_tab; 518 bool hide_lone_tab;
515 519
516 // border colors 520 // border colors