summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/layout.c b/sway/layout.c
index db9787f3..6502d930 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -579,21 +579,17 @@ void update_geometry(swayc_t *container) {
579 border_left = 0; 579 border_left = 0;
580 } 580 }
581 581
582 if (geometry.origin.x + geometry.size.w == size.w || 582 if (geometry.origin.x + geometry.size.w == workspace->x + workspace->width) {
583 geometry.size.w == container->x + container->width) {
584 // should work for swaybar at right
585 border_right = 0; 583 border_right = 0;
586 } 584 }
587 } 585 }
588 586
589 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) { 587 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
590 if (geometry.origin.y == workspace->y) { 588 if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
591 border_top = 0; 589 border_top = 0;
592 } 590 }
593 591
594 if (geometry.origin.y + geometry.size.h == size.h || 592 if (geometry.origin.y + geometry.size.h == workspace->y + workspace->height) {
595 geometry.size.h == container->y + container->height) {
596 // this works for swaybar at bottom
597 border_bottom = 0; 593 border_bottom = 0;
598 } 594 }
599 } 595 }