aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar random human <random.bored.human@gmail.com>2019-06-27 07:57:58 +0000
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-06-27 11:13:02 -0400
commit0ba959f1cebe58867cac31b95a1835b7b83370d4 (patch)
tree1c8d408e48ee545210512ca2faa54ee6c6ad8202 /sway/tree/container.c
parentReplace meson generator with custom_target (diff)
downloadsway-0ba959f1cebe58867cac31b95a1835b7b83370d4.tar.gz
sway-0ba959f1cebe58867cac31b95a1835b7b83370d4.tar.zst
sway-0ba959f1cebe58867cac31b95a1835b7b83370d4.zip
tree: set correct border value before creating floater
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
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 }