Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Inconsistent output rounding for layer shell surfaces #1650

Open
nebneb0703 opened this issue Jan 27, 2025 · 0 comments
Open

Inconsistent output rounding for layer shell surfaces #1650

nebneb0703 opened this issue Jan 27, 2025 · 0 comments

Comments

@nebneb0703
Copy link

Outputs will ceil when applying fractional scaling to the dimensions:

.to_i32_ceil(),

However when arranging layer shell surfaces, the output geometry is rounded:

.to_i32_round();

This can lead to off-by-one errors in layer shell surface positioning with fractional scaling, meaning that surfaces anchored to a right or bottom edge may have a 1px gap between the surface (input region) and the actual edge of the output.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant