diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-22 12:36:20 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-28 14:58:17 +0100 |
commit | 6750975b9f91d3e0aa632add0f56fc4611b0853a (patch) | |
tree | 27b2b8d85c070a8f8c00aa5b5e561e9fd6d977ca /swaybg/CMakeLists.txt | |
parent | 831f6680f41ab2ed91e5a17694bdee802cd1e789 (diff) |
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 'swaybg/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions