Linux: Wayland: Mouse cursor goes off the screen when using Dotline in FPS games
A Modern Crosshair Overlay
Brought to you by:
thedogecraft
Originally created by: Cleridwen
Tested on: Fedora 42/GNOME 48/Wayland
Dotline works fine, the crosshair renders, even over exclusive fullscreen games.
However, when enabled, my mouse cursor leaves my main monitor if i look too far to the sides in a game, as if the game wasn't locking my cursor to its window anymore.
This is a problem for players who use more than one screen.
This happens on the few (steam/proton) games I tested, no matter if set to borderless or exclusive fullscreen.
I haven't tested on X11 or different DEs to confirm where the problem may be.
Thank you for Dotline! I can provide more details if needed
Originally posted by: thedogecraft
noted will look in to this
Originally posted by: Luz8073
any updates?
Originally posted by: thedogecraft
Sorry for the late reply I will be testing Dotline on Wayland to figure out how to fix
Originally posted by: Cleridwen
I've had more time with Wayland since opening this issue. Wayland seems to be pretty strict when it comes to overlaying things over other apps, and with taking control of the mouse. I wouldn't be too surprised if Dotline on Wayland isn't possible yet.
Originally posted by: thedogecraft
Yes this very much does seem like the case i'll have to keep an eye out for any wayland/electron updates
Originally posted by: Luz8073
If anyone REALLY needs an overlay and is on wayland then I'd suggest possibly using reshade, this was the only thing that worked for me.
Originally posted by: thedogecraft
Honestly did not know that reshade was available on linux
Originally posted by: Luz8073
Not officially, there's an install script on GH but not even sure how outdated/updated it is. I just know it works for me so
Originally posted by: Cleridwen
Gamescope has ReShade support, altho you won't get an in-game UI to change the settings. Make sure to double check the documentation on the github. Put your
.fxshaders in/usr/share/gamescope/reshade/Shaders/, then launch your game withgamescope --reshade-effect my-shader.fx ./my-game, or putgamescope --reshade-effect my-shader.fx %command%in the launch options. Don't forget any other options you may need (-f -w 1920 -h 1080for full screen on a 1920x1080 monitor for example)There's also vkBasalt, a custom Vulkan post-processing layer with decent compatibility with ReShade. I haven't tried it personally