diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-25 16:42:55 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-25 16:42:55 +1000 |
commit | 320703fdca727adcecb5d6c6f3490ca2dad683fd (patch) | |
tree | 963540312ca9c86fe08a0945c262ab549433c209 | |
parent | Merge pull request #2028 from RyanDwyer/fix-move-workspace (diff) | |
download | sway-320703fdca727adcecb5d6c6f3490ca2dad683fd.tar.gz sway-320703fdca727adcecb5d6c6f3490ca2dad683fd.tar.zst sway-320703fdca727adcecb5d6c6f3490ca2dad683fd.zip |
Arrange views after flattening the parent
Fixes #2029.
-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 91759f7b..cf16d5c5 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -327,9 +327,11 @@ void container_move(struct sway_container *container, | |||
327 | current = container_parent(container, C_OUTPUT); | 327 | current = container_parent(container, C_OUTPUT); |
328 | } | 328 | } |
329 | 329 | ||
330 | if (parent != container_flatten(parent)) { | 330 | struct sway_container *new_parent = container_flatten(parent); |
331 | if (new_parent != parent) { | ||
331 | // Special case: we were the last one in this container, so flatten it | 332 | // Special case: we were the last one in this container, so flatten it |
332 | // and leave | 333 | // and leave |
334 | arrange_children_of(new_parent); | ||
333 | update_debug_tree(); | 335 | update_debug_tree(); |
334 | return; | 336 | return; |
335 | } | 337 | } |