aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-08-15 10:47:27 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-08-15 10:50:38 +0300
commit66f23c39809eef827ef7f47fab7bdbf68dd69a26 (patch)
treee8470d17649f6872be0173e248d16852af91282a /src/utils
parent7a6ab31ad762f1f911dafb9fc0ade83d19c66d45 (diff)
downloadniri-66f23c39809eef827ef7f47fab7bdbf68dd69a26.tar.gz
niri-66f23c39809eef827ef7f47fab7bdbf68dd69a26.tar.bz2
niri-66f23c39809eef827ef7f47fab7bdbf68dd69a26.zip
layout: Implement weighted height distribution
The intention is to make columns add up to the working area height most of the time, while still preserving the ability to have one fixed-height window. Automatic heights are now distributed according to their weight, rather than evenly. This is similar to flex-grow in CSS or fraction in Typst. Resizing one window in a column still makes that window fixed, however it changes all other windows to automatic height, computing their weights in such a way as to preserve their apparent heights.
Diffstat (limited to 'src/utils')
0 files changed, 0 insertions, 0 deletions