diff options
author | 2017-01-12 12:11:04 +0100 | |
---|---|---|
committer | 2017-01-12 12:40:28 +0100 | |
commit | c04819e8c080e40e1e872c8624c60c4a51087019 (patch) | |
tree | efa11e933930ba845663f62c96d62762286969d4 /sway/layout.c | |
parent | Fix #1008 (diff) | |
download | sway-c04819e8c080e40e1e872c8624c60c4a51087019.tar.gz sway-c04819e8c080e40e1e872c8624c60c4a51087019.tar.zst sway-c04819e8c080e40e1e872c8624c60c4a51087019.zip |
Implement hide_edge_borders smart (like in i3 4.13)
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c index ea4a680d..bb37a360 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -665,6 +665,13 @@ void update_geometry(swayc_t *container) { | |||
665 | border_bottom = 0; | 665 | border_bottom = 0; |
666 | } | 666 | } |
667 | } | 667 | } |
668 | |||
669 | if (config->hide_edge_borders == E_SMART && workspace->children->length == 1) { | ||
670 | border_top = 0; | ||
671 | border_bottom = 0; | ||
672 | border_left = 0; | ||
673 | border_right = 0; | ||
674 | } | ||
668 | } | 675 | } |
669 | 676 | ||
670 | int title_bar_height = config->font_height + 4; //borders + padding | 677 | int title_bar_height = config->font_height + 4; //borders + padding |