xwayland has no default cursor
Describe the bug Recently I observe that the default mouse cursor in xwayland applications failed load.
To Reproduce Steps to reproduce the behavior:
- Run
xev - Move mouse cursor on its window
- The mouse cursor is invisible. The
wlr_xcursor_manager_get_xcursorfails for some reason xsetroot -cursor_name left_ptrfixes it
Expected behavior The default cursor should be set.
Screenshots or stacktrace
Wayfire version git
cursor theme is Vanilla-DMZ and size 16, output scale=2.
I am not sure, what is Wayfire supposed to do to fix this? I have no idea what Xwayland needs, I thought we only need to set the XCURSOR_THEME env var.
It seems that wlr_xcursor_manager_load needs to be called somewhere after wlr_xcursor_manager_create. But it has a scale parameter that I don't know where to get. Setting it to 1 I get a blurry cursor on my scale=2 output.
Cannot reproduce this issue:
https://github.com/user-attachments/assets/2514568c-07a2-49f8-8073-72b8d4386a4c
I retested with two fresh users, and find that the issue occurs when the output scale=2 when wayfire starts. It doesn't happen when the output scale=1 when wayfire starts.
https://github.com/user-attachments/assets/1f1443d1-b839-4672-9aff-ac9d5f0a9da5
It happens when the output scale=2 when wayfire starts. Reloading from scale=1 to 2 doesn't reproduce this issue.