rounded-window-corners icon indicating copy to clipboard operation
rounded-window-corners copied to clipboard

Wrong corner radius scaling with HiDPI display

Open Dewkyz opened this issue 2 years ago • 3 comments

On HiDPI displays the corner radius is not scaled properly as I use a 200% scaling. And I can't just reduce the corner radius in the settings as I use two displays with different resolutions (one 1920x1080 and the other 3840x2160). I'm on wayland with experimental fractional scaling enabled. And this problem doesn't occur with mutter-rounded.

image We can see in blue how the corner is supposed to be (it's pop shell active hint).

Dewkyz avatar Aug 10 '22 10:08 Dewkyz

Try to set Corner Smoothing to 0 in preferences page, to use the normal rounded corners. If it still not match the line, it means that there is a bug with scaling of rounded corners.

yilozt avatar Aug 10 '22 10:08 yilozt

Corner radius seems to be multiplied by the global scaling, at least on Wayland.

Screenshots of the same window with the same corner radius of 12, corner smoothing of 0 at scaling levels 1x, 1.5x, 2x

Screenshot from 2022-08-19 20-29-36 Screenshot from 2022-08-19 20-29-56 Screenshot from 2022-08-19 20-30-16

And here's 2x scaling with corner radius 6 (12/2). Appears identical to 1x.

Screenshot from 2022-08-19 20-32-56

piousdeer avatar Aug 19 '22 13:08 piousdeer

@piousdeer, the corner radius should be fixed in commit ca11494.

Now this extensions should use correct corners radius with fractional scaling in wayland.

yilozt avatar Sep 05 '22 06:09 yilozt