hyprwm/hyprcursor

XCursor behaving weird if hyprcursor is enabled

Closed this issue · 9 comments

Today I wanted to play Oxygen Not Included. (Great game btw)
Quickly I realized that the cursor is invisible inside the game window. I suspected hyprcursor so I disabled it and its showing properly now with the xcursor fallback.

Telling from the game files OSI is some sort of native unity build.
Unfortunately I can't provide further information., but I thought it might be nice to report that there seem to be some compatibility issues with hyprcursor and certain applications.

I have some serious doubts this is the right repo. That's not how it works. Please gib a hyprland log

How does it work then? I'm kinda new to linux and hypr.

All I can tell is that the cursor doesn't display with a hyprcursor theme set but it does without it

With hyprcursor
https://github.com/user-attachments/assets/e9d08e9e-9f61-47d0-a226-c756618da182
Without hyprcursor
https://github.com/user-attachments/assets/e052d3a5-01a2-4060-93db-8e3986f5bcc6

hyprlog.md
hyprlog-no-hyprcursor.md

what's the theme? maybe the theme is bork?

Is the game running in native wayland or xwl?

Probably related to hyprwm/Hyprland#7335

Initially I had some random theme from discord but I forgot its name.

To take the video and the log later I used https://aur.archlinux.org/packages/hyprcursor-dracula-kde-git

So I don't think its the themes fault.

The game is running in xwl

if the game is running in xwayland then I dont think it can use serverside cursors so I doubt this is a hc issue

if the game is running in xwayland then I dont think it can use serverside cursors so I doubt this is a hc issue

you're right about that. after some fiddling around with the hyprcursor theme enabled I realized its not the rendering of the hyprcursor itself but the xcursor which is bugging out. It has nothing to do with OSI, it is just very obvious there.

Check this out.

If I freshly start hyprland without hyprcursor everything works as expected. even after I set the theme.

2024-11-11.01-12-28.mp4

Now I reboot, cursor is not visible in the header of steam (or OSI).

2024-11-11.01-15-28.mp4

then this is not a hc issue but a hl issue

(open an issue @ hyprland unless hyprwm/Hyprland#7335 is a dupe)