sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a064317d9772aab2760cf6da8a65dfe92867d0f9
parent 96446fdbf748acfdbd4c60fbc0d12e45a27199fe
Author: emersion <contact@emersion.fr>
Date:   Sat,  2 Jun 2018 08:33:42 +0100

Merge pull request #2088 from RyanDwyer/fix-floating-border-pixel

Fix top border when a view is initially floating
Diffstat:
Msway/tree/view.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -137,7 +137,10 @@ static void view_autoconfigure_floating(struct sway_view *view) { int lx = ws->x + (ws->width - width) / 2; int ly = ws->y + (ws->height - height) / 2; - view->border_left = view->border_right = view->border_bottom = true; + // If the view's border is B_NONE then these properties are ignored. + view->border_top = view->border_bottom = true; + view->border_left = view->border_right = true; + view_configure(view, lx, ly, width, height); }