When opening a menu in a game, the mouse isn't always reset to center, it will if the camera angle in-game doesn't change and the menu is closed and reopened. It feels inconsistent and I'm often looking for my cursor on screen. It also makes the use of the buy menu in Counter Strike 2 very tedious and impractical.
This only happens when Steam games are running on Wayland, starting a X11 session from SDDM solves this issue. The only game I was able to test outside of Steam was Minecraft through Prism Launcher, and that wasn't affected by this cursor reset bug.
Steam from Flatpak, OpenSUSE Tumbleweed and (k)Ubuntu all behave the same.
Steps for reproducing this issue:
Launch a game from Steam (Proton/Native).
Open up a menu where the cursor normally would be centered on the screen.
Observe current cursor position.
Exit the menu.
Move mouse around in-game.
Open up the menu again.
Observe updated cursor position.
OBSERVED RESULT
The cursor changes location when bringing up the menu after moving the camera angle in-game.
EXPECTED RESULT
The cursor should be centered upon opening the menu after moving the camera angle in-game.
ADDITIONAL INFORMATION
All steam games I've tried so far are affected by thisThis does not happen when starting KDE in a X11 session from SDDM!Forcing Proton Experimental on two games in the list below solves the issue!
Affected games:
Counter Strike 1.6 (Proton Experimental fixes it)
Counter Strike 2 (Proton Experimental fixes it, but cannot connect to VAC secured servers.)
Cyberpunk 2077 (Did not test Proton Experimental)
Ratchet and Clank Rift Apart (Did not test Proton Experimental)
What I have tried:
I have tried updating to KDE unstable from openSUSE repo (KDE 6.1).
I have tried running the game in gamescope with --force-grab-cursor parameter.
I have tried using QT_QPA_PLATFORM=xcb when starting Steam.
I have tried using QT_QPA_PLATFORM=xcb as a launch parameter for the game.
I have tried forcing a software cursor by using KWIN_FORCE_SW_CURSOR=1.
I have tried using an older version of KDE in Kubuntu 24.04 LTS.
I have tried using Steam from Flatpak and openSUSE repo.
I have tired disabling and unplugging all my other monitors.
I have tried disabling the integrated GPU.
I have tried launching Steam from TTY.
I have tried setting scaling to 100%.
I have tried setting Legacy applications scaling to 'Apply scaling themselves' and 'Scaled by the system'.
SOFTWARE/OS VERSIONS
Linux: OpenSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9.1-default (64 bit)
Your system information
Summary of the issue
https://github.com/ValveSoftware/steam-for-linux/assets/170082508/765e0f4a-8163-424c-8c56-1e31b68a91a8
When opening a menu in a game, the mouse isn't always reset to center, it will if the camera angle in-game doesn't change and the menu is closed and reopened. It feels inconsistent and I'm often looking for my cursor on screen. It also makes the use of the buy menu in Counter Strike 2 very tedious and impractical.
This only happens when Steam games are running on Wayland, starting a X11 session from SDDM solves this issue. The only game I was able to test outside of Steam was Minecraft through Prism Launcher, and that wasn't affected by this cursor reset bug.
Steam from Flatpak, OpenSUSE Tumbleweed and (k)Ubuntu all behave the same.
Steps for reproducing this issue:
OBSERVED RESULT The cursor changes location when bringing up the menu after moving the camera angle in-game.
EXPECTED RESULT The cursor should be centered upon opening the menu after moving the camera angle in-game.
ADDITIONAL INFORMATION
All steam games I've tried so far are affected by this This does not happen when starting KDE in a X11 session from SDDM! Forcing Proton Experimental on two games in the list below solves the issue!
Affected games:
What I have tried:
--force-grab-cursor
parameter.QT_QPA_PLATFORM=xcb
when starting Steam.QT_QPA_PLATFORM=xcb
as a launch parameter for the game.KWIN_FORCE_SW_CURSOR=1
.SOFTWARE/OS VERSIONS Linux: OpenSUSE Tumbleweed (available in About System) KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Kernel Version: 6.8.9.1-default (64 bit)
Graphics: Device-1: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] driver: amdgpu v: kernel Device-2: AMD Raphael driver: amdgpu v: kernel Display: wayland server: X.org v: 1.21.1.12 with: Xwayland v: 23.2.6 compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa dri: radeonsi gpu: amdgpu,amdgpu resolution: 1: 2560x1440 2: 1440x2560 API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.5 renderer: AMD Radeon RX 7900 XTX (radeonsi navi31 LLVM 18.1.5 DRM 3.57 6.8.9-1-default)