diff options
author | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 08:44:21 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 08:44:21 -0500 |
commit | e6af5f8bdbd98d1ece927b67d9ef881f3511e087 (patch) | |
tree | 1867cf64da858a89a2fda1884bf25c2809770f6c /sway/layout.c | |
parent | c0683a0444e852fb812686f7028450edc77eb170 (diff) | |
parent | e3104a48e387a91b12952089595f447f286f3fea (diff) |
Merge branch 'master' of git://github.com/SirCmpwn/sway into x11-pids
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 10 |
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) { 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; } } 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; } - 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; } } |