properly hide top border inside tabbed/stacked

When titlebar is hidden, top border of the topmost view inside
tabbed/stacked container will not be drawn. This is changed in layout.c

On the other hand, top border should be drawn sometimes, for example
when titlebar is hidden on a view that is not the topmost inside
tabbed/stacked container. This is changed in border.c
This commit is contained in:
D.B 2016-07-30 15:12:34 +02:00
parent 3f83968d30
commit 8d0048c8d5
3 changed files with 20 additions and 3 deletions

View file

@ -587,7 +587,7 @@ void update_geometry(swayc_t *container) {
}
if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
if (geometry.origin.y == workspace->y) {
if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
border_top = 0;
}