Fix top border when a view is initially floating

Fixes #2085.
This commit is contained in:
Ryan Dwyer 2018-06-02 11:28:10 +10:00
parent 96446fdbf7
commit 3f1cfd547e
1 changed files with 4 additions and 1 deletions

View File

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