mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Keep view fullscreened when moving to another workspace.
container_handle_fullscreen_reparent() must be called *after* setting the container's new parent.
This commit is contained in:
parent
7434c52421
commit
34429a3605
@ -150,8 +150,8 @@ void container_add_child(struct sway_container *parent,
|
|||||||
parent, parent->type, parent->width, parent->height);
|
parent, parent->type, parent->width, parent->height);
|
||||||
struct sway_container *old_parent = child->parent;
|
struct sway_container *old_parent = child->parent;
|
||||||
list_add(parent->children, child);
|
list_add(parent->children, child);
|
||||||
container_handle_fullscreen_reparent(child, old_parent);
|
|
||||||
child->parent = parent;
|
child->parent = parent;
|
||||||
|
container_handle_fullscreen_reparent(child, old_parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sway_container *container_remove_child(struct sway_container *child) {
|
struct sway_container *container_remove_child(struct sway_container *child) {
|
||||||
|
Loading…
Reference in New Issue
Block a user