summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
authorLibravatar D.B <thejan.2009@gmail.com>2016-07-30 15:12:34 +0200
committerLibravatar D.B <thejan.2009@gmail.com>2016-07-30 15:12:34 +0200
commit8d0048c8d5b3774f79fcb0711d63bcc226b78631 (patch)
treeadf1c6948b3dab471484d579e24abde013476ed1 /sway/layout.c
parentFix swaybg sizing on hidpi outputs (diff)
downloadsway-8d0048c8d5b3774f79fcb0711d63bcc226b78631.tar.gz
sway-8d0048c8d5b3774f79fcb0711d63bcc226b78631.tar.zst
sway-8d0048c8d5b3774f79fcb0711d63bcc226b78631.zip
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
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c2
1 files changed, 1 insertions, 1 deletions
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) {
587 } 587 }
588 588
589 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) { 589 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
590 if (geometry.origin.y == workspace->y) { 590 if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
591 border_top = 0; 591 border_top = 0;
592 } 592 }
593 593