commit 3f1cfd547ed50d8b31b857b52a3461a515884b56 parent 96446fdbf748acfdbd4c60fbc0d12e45a27199fe Author: Ryan Dwyer <ryandwyer1@gmail.com> Date: Sat, 2 Jun 2018 11:28:10 +1000 Fix top border when a view is initially floating Fixes #2085. Diffstat:
| M | sway/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); }