diff options
author | 2015-12-22 12:36:20 +0100 | |
---|---|---|
committer | 2015-12-28 14:58:17 +0100 | |
commit | 6750975b9f91d3e0aa632add0f56fc4611b0853a (patch) | |
tree | 27b2b8d85c070a8f8c00aa5b5e561e9fd6d977ca /.ci | |
parent | arrange_windows_r: Bring parent coordinates into layout calculations. (diff) | |
download | sway-6750975b9f91d3e0aa632add0f56fc4611b0853a.tar.gz sway-6750975b9f91d3e0aa632add0f56fc4611b0853a.tar.zst sway-6750975b9f91d3e0aa632add0f56fc4611b0853a.zip |
arrange_windows_r: Round pixels to match reality, fixes calculations.
If the width or height of a container can't be evenly distributed to its
children, then the layout algorithm still thought it got it right (due
to using decimals) which caused a gap of one or more pixels for some
window arrangements.
This is fixed by this patch by first rounding off the width and height
(so that decimals are never introduced) and then adjusting the last
view in a container to fill the remaining pixels (which now is counted
correctly due to the decimals being removed).
Also, due to the way gaps are implemented, an odd sized gap can never be
aligned properly, so just adjust to closest even number.
Diffstat (limited to '.ci')
0 files changed, 0 insertions, 0 deletions