[wayland] cursor hotspots on scaled surfaces behave incorrectly (or at least different from X11).
On Firefox on Wayland, go to https://cr.kungfoo.net/style/cursor/abusive-cursor.html
Hover over the top left (green) area of the page. That has a rule like cursor: url('128x128.png') 128 128, auto
.
The expectation is that the cursor disappears as soon as it would exit outside the viewport area of the site. This works correctly on X11 and on Wayland with scale = 1 (non-hidpi). However, on Wayland with HiDPI, the GDK cursors created with an scaled surface (see code here) seem to expect their cursor hotspot in physical pixels. That is, on the page above, the green area has the cursor in the middle of the image (instead of the bottom right).
I could work around it in Firefox by multiplying the hotspot for the scale only on Wayland, but it seems wrong that the API would behave differently on X11 vs. Wayland. My environment:
- GNOME Shell 42.5
- gtk3 1:3.24.34+r156+g812b3930-1