From 8d0048c8d5b3774f79fcb0711d63bcc226b78631 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Sat, 30 Jul 2016 15:12:34 +0200 Subject: 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 --- sway/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/layout.c') diff --git a/sway/layout.c b/sway/layout.c index db9787f3..ba9a8864 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -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; } -- cgit v1.2.3 From c33e0ee629e263bcf158df59bff01c1289d18d0a Mon Sep 17 00:00:00 2001 From: "D.B" Date: Sat, 30 Jul 2016 15:22:53 +0200 Subject: revert border hiding to more recent version --- sway/layout.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sway/layout.c') diff --git a/sway/layout.c b/sway/layout.c index ba9a8864..6502d930 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -579,9 +579,7 @@ void update_geometry(swayc_t *container) { border_left = 0; } - if (geometry.origin.x + geometry.size.w == size.w || - geometry.size.w == container->x + container->width) { - // should work for swaybar at right + if (geometry.origin.x + geometry.size.w == workspace->x + workspace->width) { border_right = 0; } } @@ -591,9 +589,7 @@ void update_geometry(swayc_t *container) { border_top = 0; } - if (geometry.origin.y + geometry.size.h == size.h || - geometry.size.h == container->y + container->height) { - // this works for swaybar at bottom + if (geometry.origin.y + geometry.size.h == workspace->y + workspace->height) { border_bottom = 0; } } -- cgit v1.2.3