Skip to content

🍒 Round up output geometry

Yifan Zhu requested to merge work/cherry-pick-cff5739c into Plasma/5.27

Under fractional scaling, output screens can have non-integral sizes. Previous code uses QSizeF::toSize(), which rounds to the nearest integer. This sometimes results in different screens sharing one pixel at the edge, which causes BUG 464842 and BUG 477791.

Use the new Output::explicitLogicalSizeInt() and Config::logicalSizeForOutputInt functions to explicitly round up non-integral sizes.

BUG: 464842 BUG: 477791

(cherry picked from commit cff5739c)

Merge request reports

Loading