aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-04 08:34:07 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commitc0da364865bb08bfb464c22eefd87a260a07cc97 (patch)
treece7d3b3d48fdad2c9e91718e942ce95e7d0bcae5 /sway/tree/container.c
parentFix crash when using focus parent/child from an empty workspace (diff)
downloadsway-c0da364865bb08bfb464c22eefd87a260a07cc97.tar.gz
sway-c0da364865bb08bfb464c22eefd87a260a07cc97.tar.zst
sway-c0da364865bb08bfb464c22eefd87a260a07cc97.zip
Fix floating view moving to 0,0 when splitting
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 2 insertions, 0 deletions
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,
1148 struct sway_container *cont = container_create(NULL); 1148 struct sway_container *cont = container_create(NULL);
1149 cont->width = child->width; 1149 cont->width = child->width;
1150 cont->height = child->height; 1150 cont->height = child->height;
1151 cont->x = child->x;
1152 cont->y = child->y;
1151 cont->current_gaps = child->current_gaps; 1153 cont->current_gaps = child->current_gaps;
1152 cont->layout = layout; 1154 cont->layout = layout;
1153 1155