diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
755 | struct sway_container *old_parent = container->parent; | 755 | struct sway_container *old_parent = container->parent; |
756 | container_detach(container); | 756 | container_detach(container); |
757 | workspace_add_floating(workspace, container); | 757 | workspace_add_floating(workspace, container); |
758 | container_floating_set_default_size(container); | ||
759 | container_floating_resize_and_center(container); | ||
760 | if (container->view) { | 758 | if (container->view) { |
761 | view_set_tiled(container->view, false); | 759 | view_set_tiled(container->view, false); |
762 | if (container->view->using_csd) { | 760 | if (container->view->using_csd) { |
763 | container->border = B_CSD; | 761 | container->border = B_CSD; |
764 | } | 762 | } |
765 | } | 763 | } |
764 | container_floating_set_default_size(container); | ||
765 | container_floating_resize_and_center(container); | ||
766 | if (old_parent) { | 766 | if (old_parent) { |
767 | container_reap_empty(old_parent); | 767 | container_reap_empty(old_parent); |
768 | } | 768 | } |