diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2019-11-04 15:10:40 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-11-04 21:16:27 -0500 |
commit | 3975ca28c2e870eb3f40bbd43a90354743f7ccf1 (patch) | |
tree | d35aa9aa8b0c17e94fb24359a13ab83547cafae5 /include | |
parent | 38b37247ff26b7c0926a8d31c1a91f818d1f5d84 (diff) | |
download | sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.xz |
smart_borders: separate smartness from edge types
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 10 |
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 { E_VERTICAL, /**< hide vertical edge borders */ E_HORIZONTAL, /**< hide horizontal edge borders */ E_BOTH, /**< hide vertical and horizontal edge borders */ - E_SMART, /**< hide both if precisely one window is present in workspace */ - E_SMART_NO_GAPS, /**< hide both if one window and gaps to edge is zero */ +}; + +enum edge_border_smart_types { + ESMART_OFF, + ESMART_ON, /**< hide edges if precisely one window is present in workspace */ + ESMART_NO_GAPS, /**< hide edges if one window and gaps to edge is zero */ }; enum sway_popup_during_fullscreen { @@ -510,7 +514,7 @@ struct sway_config { int border_thickness; int floating_border_thickness; enum edge_border_types hide_edge_borders; - enum edge_border_types saved_edge_borders; + enum edge_border_smart_types hide_edge_borders_smart; bool hide_lone_tab; // border colors |