diff options
author | emersion <contact@emersion.fr> | 2018-06-02 08:33:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 08:33:42 +0100 |
commit | a064317d9772aab2760cf6da8a65dfe92867d0f9 (patch) | |
tree | 65c9f10a39b13ac8b44aa6a3d447efd24ff280f1 /sway | |
parent | 96446fdbf748acfdbd4c60fbc0d12e45a27199fe (diff) | |
parent | 3f1cfd547ed50d8b31b857b52a3461a515884b56 (diff) |
Merge pull request #2088 from RyanDwyer/fix-floating-border-pixel
Fix top border when a view is initially floating
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 3117ded6..79441d49 100644 --- 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); } |