wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

xwayland has no default cursor

Open lilydjwg opened this issue 1 year ago • 6 comments

Describe the bug Recently I observe that the default mouse cursor in xwayland applications failed load.

To Reproduce Steps to reproduce the behavior:

  1. Run xev
  2. Move mouse cursor on its window
  3. The mouse cursor is invisible. The wlr_xcursor_manager_get_xcursor fails for some reason
  4. xsetroot -cursor_name left_ptr fixes 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.

lilydjwg avatar Jan 27 '24 05:01 lilydjwg

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.

ammen99 avatar Jun 23 '25 10:06 ammen99

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.

lilydjwg avatar Jun 24 '25 06:06 lilydjwg

Cannot reproduce this issue:

https://github.com/user-attachments/assets/2514568c-07a2-49f8-8073-72b8d4386a4c

killown avatar Aug 05 '25 13:08 killown

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.

lilydjwg avatar Aug 12 '25 03:08 lilydjwg

https://github.com/user-attachments/assets/1f1443d1-b839-4672-9aff-ac9d5f0a9da5

killown avatar Aug 12 '25 19:08 killown

It happens when the output scale=2 when wayfire starts. Reloading from scale=1 to 2 doesn't reproduce this issue.

lilydjwg avatar Aug 13 '25 01:08 lilydjwg