diff options
-rw-r--r-- | sway/tree/container.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 3e234186..8557210f 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -1413,6 +1413,13 @@ struct sway_container *container_split(struct sway_container *child, struct sway_seat *seat = input_manager_get_default_seat(); bool set_focus = (seat_get_focus(seat) == &child->node); + if (container_is_floating(child) && child->view) { + view_set_tiled(child->view, true); + if (child->view->using_csd) { + child->border = child->saved_border; + } + } + struct sway_container *cont = container_create(NULL); cont->width = child->width; cont->height = child->height; |