properly hide bottom and right borders

This commit is contained in:
D.B 2016-07-22 06:00:27 +02:00
parent 789870e60e
commit f16cb1464f

View file

@ -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;
}
}