aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-02 11:28:10 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-02 11:45:16 +1000
commit3f1cfd547ed50d8b31b857b52a3461a515884b56 (patch)
tree65c9f10a39b13ac8b44aa6a3d447efd24ff280f1 /sway
parentMerge pull request #2027 from RyanDwyer/implement-floating (diff)
downloadsway-3f1cfd547ed50d8b31b857b52a3461a515884b56.tar.gz
sway-3f1cfd547ed50d8b31b857b52a3461a515884b56.tar.zst
sway-3f1cfd547ed50d8b31b857b52a3461a515884b56.zip
Fix top border when a view is initially floating
Fixes #2085.
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/view.c5
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) {
137 int lx = ws->x + (ws->width - width) / 2; 137 int lx = ws->x + (ws->width - width) / 2;
138 int ly = ws->y + (ws->height - height) / 2; 138 int ly = ws->y + (ws->height - height) / 2;
139 139
140 view->border_left = view->border_right = view->border_bottom = true; 140 // If the view's border is B_NONE then these properties are ignored.
141 view->border_top = view->border_bottom = true;
142 view->border_left = view->border_right = true;
143
141 view_configure(view, lx, ly, width, height); 144 view_configure(view, lx, ly, width, height);
142} 145}
143 146