ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.07k stars 204 forks source link

Custom cursor working on vkcube, but not working on Steam #1438

Open 4nexus5 opened 2 months ago

4nexus5 commented 2 months ago

I want to use a custom cursor on gamescope (the same cursor I have on my OS) and after finally getting the custom cursor on vkcube, I tried using the exact same option and path on Steam (CS2 to be exact), but it doesn't work. It still uses the default cursor no matter what I do. Any idea how to resolve the issue? Steam is not from flatpak btw.

Gamescope version: 3.14.24 Distro: Arch

Launch options: gamescope -w 1440 -h 1080 -W 1920 -H 1080 -r 165 -S stretch -e -f --cursor /usr/share/icons/cursorfolder/left_ptr.png -- %command%

misyltoad commented 2 months ago

I think the issue is that Steam is a CEF app and it uses the gtk cursor theme, rather than the one on the root window

4nexus5 commented 2 months ago

I think the issue is that Steam is a CEF app and it uses the gtk cursor theme, rather than the one on the root window

I'm pretty new to Linux, but is the cursor file located somewhere in the gamescope or steam files, or does it use a cursor from directories like /usr/share/icons or somewhere in the home directory. Either way, my idea was to maybe replace the cursor icon it uses by default by the one on my root window and just give it the same name as the old one...

misyltoad commented 2 months ago

If you check what gamescope-session in SteamOS does, it calls some kwriteconfig5 thing to write the gtk config to change the cursor.

4nexus5 commented 2 months ago

If you check what gamescope-session in SteamOS does, it calls some kwriteconfig5 thing to write the gtk config to change the cursor.

Is it possible to modify it? Where is the config located?