Linux (wayland) cursor/focus not staying in game window, ranodmly.

Barri

New member
Frequently during matches mouse will seemingly randomly stop being 'centered' in the game window and inputs are then pushed into other on other monitors. Whenever this bug is present when 'turning' right I'll see my mouse appear on my second monitor

This is temporarily fixed with some random assortment of spaming 'b' to open shop, 'esc' to open menu, fn+tab switching focus between applications, and raging at the machine. Opening video settings and checking/unchecking 'Full screen focus behavior' does not seem to impact this, and this bug happens regardless of this checkbox's state.

I'm rendering using Vulkan, if that matters.
KDE Plamsa Version: 6.4.4
KDE Frameworks Vers: 6.17.0
Qt Version: 6.9.1
Distro: Bazzite 42.20250816.0 (Kinoite)
Kernal Version: 6.15.9-106.bazzite.fc42.x86_64 (64-bit)

This issue doesn't happen every game, but when it does it seems to happen several times in the same game, it also seems to only happen when I'm doing really well and in the middle of a fight; but that is likely bias.
 
Last edited:
This is pretty common on Wayland! I use Gamemode to resolve it on this title, as well as others.
You'll need to install gamemode onto your system, and edit the launch options of Deadlock in Steam. Your system will likely be different from mine, but here's what my launch options look like:

Code:
gamemoderun %command% -fullscreen -w 2560 -h 1440

I use GE-Proton10-15. You can find gamemode here.
 
This is pretty common on Wayland! I use Gamemode to resolve it on this title, as well as others.
You'll need to install gamemode onto your system, and edit the launch options of Deadlock in Steam. Your system will likely be different from mine, but here's what my launch options look like:

Code:
gamemoderun %command% -fullscreen -w 2560 -h 1440

I use GE-Proton10-15. You can find gamemode here.
Thanks for the advice, launch options, and debugging direction. It's odd that the game is running in fullscreen and intermittently has this issue while mid-game not as an issue at game launch.

I took a look at gamemoderun. Bazzite is an 'immutable' distro, and gamemoderun is not provided through brew/flatpak/rpm-ostree. Supposedly, system76-scheduler serves the same purpose as it, but I'm also not interested in ricing or tinkering with the OS and couldn't be bothered enough to read through the man. While this may be an issue explicitly related to Wayland, this is a problem I'm only experiencing with Deadlock; and judging by the odd behavior of the fullscreen checkbox in the settings, I'm confident it's primarily a Deadlock issue. Of course, I could spend a significant amount of time hacking together a solution to force it to work, but I refuse to spend my time like that.

As a consumer, I'm not interested in tinkering with it to force it to work and it's a problem Valve's users are experiencing with their product.

Opening steam overlay and closing it with the cursor is a consistent way of resolving this bug.
Thank you. I don't believe I tried closing it with the cursor, but wasn't having much luck toggling steam overlay with hotkeys, I'll try that when it happens next.
 
Back
Top