diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index d75e34a5..9b671c1d 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -669,6 +669,9 @@ void container_set_floating(struct sway_container *container, bool enable) { | |||
669 | container_init_floating(container); | 669 | container_init_floating(container); |
670 | if (container->view) { | 670 | if (container->view) { |
671 | view_set_tiled(container->view, false); | 671 | view_set_tiled(container->view, false); |
672 | if (container->view->using_csd) { | ||
673 | container->view->border = B_CSD; | ||
674 | } | ||
672 | } | 675 | } |
673 | if (old_parent) { | 676 | if (old_parent) { |
674 | container_reap_empty(old_parent); | 677 | container_reap_empty(old_parent); |
@@ -695,6 +698,9 @@ void container_set_floating(struct sway_container *container, bool enable) { | |||
695 | } | 698 | } |
696 | if (container->view) { | 699 | if (container->view) { |
697 | view_set_tiled(container->view, true); | 700 | view_set_tiled(container->view, true); |
701 | if (container->view->using_csd) { | ||
702 | container->view->border = container->view->saved_border; | ||
703 | } | ||
698 | } | 704 | } |
699 | container->is_sticky = false; | 705 | container->is_sticky = false; |
700 | } | 706 | } |