aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-20 09:01:52 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-20 21:26:14 +1000
commit34429a3605888b2d67af6e4489d8ceaa64bbd25a (patch)
tree880039dc533b2f9fcc64afc91f3a233ec20a71cb /sway/tree/layout.c
parentMerge pull request #1827 from bpinto/swaybar-memory-leak (diff)
downloadsway-34429a3605888b2d67af6e4489d8ceaa64bbd25a.tar.gz
sway-34429a3605888b2d67af6e4489d8ceaa64bbd25a.tar.zst
sway-34429a3605888b2d67af6e4489d8ceaa64bbd25a.zip
Keep view fullscreened when moving to another workspace.
container_handle_fullscreen_reparent() must be called *after* setting the container's new parent.
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c2
1 files changed, 1 insertions, 1 deletions
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,
150 parent, parent->type, parent->width, parent->height); 150 parent, parent->type, parent->width, parent->height);
151 struct sway_container *old_parent = child->parent; 151 struct sway_container *old_parent = child->parent;
152 list_add(parent->children, child); 152 list_add(parent->children, child);
153 container_handle_fullscreen_reparent(child, old_parent);
154 child->parent = parent; 153 child->parent = parent;
154 container_handle_fullscreen_reparent(child, old_parent);
155} 155}
156 156
157struct sway_container *container_remove_child(struct sway_container *child) { 157struct sway_container *container_remove_child(struct sway_container *child) {