diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-07-22 05:29:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 05:29:08 -0400 |
commit | 1fb971fffcccc85017884dc0459a1bfb2ac39dcd (patch) | |
tree | a4b31db03ac22bc13cf1c944a0fcfeebf7a7a773 /sway/layout.c | |
parent | 789870e60e7c94a84203ee70de325ad8b0a4174d (diff) | |
parent | f16cb1464f1227dabdfde71cfbef7d42cd2a6166 (diff) |
Merge pull request #781 from thejan2009/bottom-right-edges
properly hide bottom and right borders
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c index 2139b78e..1d5944f8 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -576,7 +576,7 @@ void update_geometry(swayc_t *container) { border_left = 0; } - if (geometry.size.w == workspace->width) { + if (geometry.origin.x + geometry.size.w == workspace->x + workspace->width) { border_right = 0; } } @@ -586,7 +586,7 @@ void update_geometry(swayc_t *container) { border_top = 0; } - if (geometry.size.h == workspace->height) { + if (geometry.origin.y + geometry.size.h == workspace->y + workspace->height) { border_bottom = 0; } } |