diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index b0d23700..23b6c997 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -804,9 +804,10 @@ void container_set_floating(struct sway_container *container, bool enable) { | |||
804 | container->width = reference->width; | 804 | container->width = reference->width; |
805 | container->height = reference->height; | 805 | container->height = reference->height; |
806 | } else { | 806 | } else { |
807 | workspace_add_tiling(workspace, container); | 807 | struct sway_container *other = |
808 | container->width = workspace->width; | 808 | workspace_add_tiling(workspace, container); |
809 | container->height = workspace->height; | 809 | other->width = workspace->width; |
810 | other->height = workspace->height; | ||
810 | } | 811 | } |
811 | if (container->view) { | 812 | if (container->view) { |
812 | view_set_tiled(container->view, true); | 813 | view_set_tiled(container->view, true); |