From 3137615838c20e18b98783d8fd23a7036b3473cd Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Thu, 21 Jul 2016 21:15:46 -0500 Subject: [PATCH 1/2] fix regression in hide_edge_borders --- sway/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/layout.c b/sway/layout.c index 3285560b..2139b78e 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -576,7 +576,7 @@ void update_geometry(swayc_t *container) { border_left = 0; } - if (geometry.origin.x + geometry.size.w == workspace->width) { + if (geometry.size.w == workspace->width) { border_right = 0; } } @@ -586,7 +586,7 @@ void update_geometry(swayc_t *container) { border_top = 0; } - if (geometry.origin.y + geometry.size.h == workspace->height) { + if (geometry.size.h == workspace->height) { border_bottom = 0; } } From f16cb1464f1227dabdfde71cfbef7d42cd2a6166 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Fri, 22 Jul 2016 06:00:27 +0200 Subject: [PATCH 2/2] properly hide bottom and right borders --- sway/layout.c | 4 ++-- 1 file 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; } }