Skip to content

output/cursor: fix buffer size when nested and scaled

Simon Ser requested to merge emersion/wlroots:fix-scaled-nested-cursor into master

The Wayland, X11 and headless backends don't really care about the cursor size. We were picking a size identical to the texture size in that case. This is incorrect for LoDPI cursor textures on HiDPI outputs: in that case, we need to scale up the cursor texture.

Fixes the cursor being chopped off under the Wayland backend with scale > 1.

Merge request reports