From 34429a3605888b2d67af6e4489d8ceaa64bbd25a Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 20 Apr 2018 09:01:52 +1000 Subject: Keep view fullscreened when moving to another workspace. container_handle_fullscreen_reparent() must be called *after* setting the container's new parent. --- sway/tree/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/tree/layout.c') diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 7ffc2484..12af7172 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -150,8 +150,8 @@ void container_add_child(struct sway_container *parent, parent, parent->type, parent->width, parent->height); struct sway_container *old_parent = child->parent; list_add(parent->children, child); - container_handle_fullscreen_reparent(child, old_parent); child->parent = parent; + container_handle_fullscreen_reparent(child, old_parent); } struct sway_container *container_remove_child(struct sway_container *child) { -- cgit v1.2.3