swaywm / swaybg

Wallpaper tool for Wayland compositors
MIT License
490 stars 31 forks source link

Fix fractional scale detection #69

Closed mstoeckl closed 4 months ago

mstoeckl commented 4 months ago

The fractional scale protocol does not guarantee that a preferred fractional scale value is provided before the surface is mapped. Therefore, use the (integral) output scale value until a fractional scale is available.

Also: wl_output.scale is not guaranteed to be sent if the initial output scale is 1 (although Sway always sends it). Set the default output scale value.

This should resolve the issue noted at the end of https://github.com/swaywm/swaybg/pull/56.