From 0ba959f1cebe58867cac31b95a1835b7b83370d4 Mon Sep 17 00:00:00 2001 From: random human Date: Thu, 27 Jun 2019 07:57:58 +0000 Subject: tree: set correct border value before creating floater --- sway/tree/container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/tree/container.c') diff --git a/sway/tree/container.c b/sway/tree/container.c index 89a47151..9046ae27 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -755,14 +755,14 @@ void container_set_floating(struct sway_container *container, bool enable) { struct sway_container *old_parent = container->parent; container_detach(container); workspace_add_floating(workspace, container); - container_floating_set_default_size(container); - container_floating_resize_and_center(container); if (container->view) { view_set_tiled(container->view, false); if (container->view->using_csd) { container->border = B_CSD; } } + container_floating_set_default_size(container); + container_floating_resize_and_center(container); if (old_parent) { container_reap_empty(old_parent); } -- cgit v1.2.3-54-g00ecf