diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-25 08:43:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 08:43:57 -0400 |
commit | daf328d0540b3e4919ae726922b68b8edc0fc2a3 (patch) | |
tree | e938c47aeb272eacb10175e9189b9fa6bd90671e /sway/tree/layout.c | |
parent | a268a0c2ae9dcad918eae44bd325dc21977ac3fc (diff) | |
parent | 320703fdca727adcecb5d6c6f3490ca2dad683fd (diff) |
Merge pull request #2033 from RyanDwyer/arrange-after-flatten
Arrange views after flattening the parent
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 6763b34c..21cec529 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -327,9 +327,11 @@ void container_move(struct sway_container *container, current = container_parent(container, C_OUTPUT); } - if (parent != container_flatten(parent)) { + struct sway_container *new_parent = container_flatten(parent); + if (new_parent != parent) { // Special case: we were the last one in this container, so flatten it // and leave + arrange_children_of(new_parent); update_debug_tree(); return; } |