feat: optimize layout based on container rect
Hi all,
so when I am in a triple tiled state, say
-------------------------
| | |
| | B |
| A |--------|
| | |
| | C |
| | |
-------------------------
and I kill window A, I may end up in a horizontally tiled state
----------------
| B |
----------------
| C |
----------------
while due to my screen layout, i.e. a laptop with more horizontal than vertical space, I would prefer B and C to be tiled vertically, i.e.
-------------------------
| | |
| | |
| | |
| C | B |
| | |
| | |
| | |
-------------------------
Can this - or the vice versa case, when having more vertical space, be adressed also in more complicated situations,
- automatically from detecting the screen layout
- be implemented as an option
?
Hello @maymage, in your example, when window A is closed, you want B and C to be side by side if the screen's width is larger than its height?
What if B is a container with two more windows D and E? How would they be positioned? I think all windows would be repositioned if we consider the container's dimensions.
..in your example, when window A is closed, you want B and C to be side by side if the screen's width is larger than its height?
Yes, exactly!
What if B is a container with two more windows D and E? How would they be positioned? I think all windows would be repositioned if we consider the container's dimensions.
I think passing from
-------------------------
| | | |
| | D | E |
| | | |
| A |--------|
| | |
| | C |
| | |
-------------------------
to
-------------------------
| | |
| | D |
| | |
| C |--------|
| | |
| | E |
| | |
-------------------------
would be most natural - as the relative size is preserved.