A way to make all children the children of their grandparents
Sometimes I have a group of windows inside a container that is in another container and I want to take all windows inside the container and make them children of their grandparent. Is this possible? Here is a visualization,
Before
g
/ \
p a
/ \
c d
After
g
/|\
c d a
If you started with,
+---------+---------+
| | |
| c | |
| | |
+---------| a |
| | |
| d | |
| | |
+---------+---------+
It would end up with
+------+------+------+
| | | |
| | | |
| | | |
| c | d | a |
| | | |
| | | |
| | | |
+------+------+------+
Where c, d, and a are all in the same container.
Crap. Too little space. Answer instead.