aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c7
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,
1413 struct sway_seat *seat = input_manager_get_default_seat(); 1413 struct sway_seat *seat = input_manager_get_default_seat();
1414 bool set_focus = (seat_get_focus(seat) == &child->node); 1414 bool set_focus = (seat_get_focus(seat) == &child->node);
1415 1415
1416 if (container_is_floating(child) && child->view) {
1417 view_set_tiled(child->view, true);
1418 if (child->view->using_csd) {
1419 child->border = child->saved_border;
1420 }
1421 }
1422
1416 struct sway_container *cont = container_create(NULL); 1423 struct sway_container *cont = container_create(NULL);
1417 cont->width = child->width; 1424 cont->width = child->width;
1418 cont->height = child->height; 1425 cont->height = child->height;