Skip to content

display: Correctly round scaled monitor size

Benjamin Berg requested to merge benzea/display-arrangement-rounding into master

Needs to be backported to stable.

We were converting the floating point numbers to integers using a cast, which causes them to be always rounded down. The result is that a monitor may be too small by a pixel, creating broken configurations.

Also fix the same issue when calculating whether a scale should be supported.

See mutter#412 (closed)

Edited by Benjamin Berg

Merge request reports