mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 08:21:28 +00:00
Merge pull request #2088 from RyanDwyer/fix-floating-border-pixel
Fix top border when a view is initially floating
This commit is contained in:
commit
a064317d97
|
@ -137,7 +137,10 @@ static void view_autoconfigure_floating(struct sway_view *view) {
|
||||||
int lx = ws->x + (ws->width - width) / 2;
|
int lx = ws->x + (ws->width - width) / 2;
|
||||||
int ly = ws->y + (ws->height - height) / 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);
|
view_configure(view, lx, ly, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue