From c0da364865bb08bfb464c22eefd87a260a07cc97 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 4 Sep 2018 08:34:07 +1000 Subject: Fix floating view moving to 0,0 when splitting --- sway/tree/container.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/tree/container.c b/sway/tree/container.c index 70b988f2..fbce8158 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -1148,6 +1148,8 @@ struct sway_container *container_split(struct sway_container *child, struct sway_container *cont = container_create(NULL); cont->width = child->width; cont->height = child->height; + cont->x = child->x; + cont->y = child->y; cont->current_gaps = child->current_gaps; cont->layout = layout; -- cgit v1.2.3-54-g00ecf