diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 8 |
1 files changed, 2 insertions, 6 deletions
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) { | |||
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 | } |
@@ -591,9 +589,7 @@ void update_geometry(swayc_t *container) { | |||
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 | } |