Open andersk opened 7 months ago
@andersk thanks for contributing!
Fascinating... and frustrating. I like your suggested solution. Maybe a tolerance of $.05$ would work? Seems fractional scaling is usually to the nearest $.25$.
As I've mentioned in other issues, I don't currently have access to a machine to test on, so I can't make any contributions myself. If you're able to make the change yourself, I would be happy to see a pull request.
On my laptop running GNOME Shell 45.5 with Wayland and fractional scaling enabled,
x1.75
is listed as an available scale factor, but--scale=1.75
is not accepted. Instead, I need to provide many more decimals:--scale=1.7518248
works. But there’s no way to discover this without patching out the 2-decimal rounding fromimpl Display for Mode
.Ideally gnome-randr would automatically select the closest of the available scale factors within some tolerance, rather than passing the provided value directly to GNOME which requires the excessive precision.