protonscr

[xwayland] cursor does not reset to center in games

steamopen Window manager
ValveSoftware/steam-for-linux#10901 · opened 2024-05-17 by madness742 · updated 2026-03-17 · 4 comments · github
Mmadness742 2024-05-17 github

Your system information

  • Steam client version (build number or date): updater built May 16 2024 20:10:34
  • Distribution (e.g. Ubuntu): OpenSUSE Tumbleweed
  • Opted into Steam client beta?: No, but I've also tried the beta to see if it solves the issue.
  • Have you checked for system updates?: Yes, system is fully updated.
  • Steam Logs: steam-logs.tar.gz (directory is hidden!)
  • GPU: AMD Sapphire 7900 XTX Nitro+

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:

  1. Launch a game from Steam (Proton/Native).
  2. Open up a menu where the cursor normally would be centered on the screen.
  3. Observe current cursor position.
  4. Exit the menu.
  5. Move mouse around in-game.
  6. Open up the menu again.
  7. 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 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:

  • 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)

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)

Mmadness742 2024-05-31 github

This issue seems to have been fixed in-game, but the problem still occurs in steam overlay.

LLordEnder-Kitty 2025-10-10 github

Does anyone have a fix for this yet? I just noticed it while playing minecraft and it's super annoying when going through chests.

HHaloMaster315 2026-01-18 github

I have a similar problem. I use:

  • Pop OS 24_04 LTS
  • Steam, Minecraft (legit every game)
  • Wayland
  • Proton Experimental

Everytime i open a menu in a game (Minecraft Inventory, Rust Inventory, ...) the position of the curser is not centered. Instead it has the same position as the last time the menu was open. Not having the cursor position centered everytime you open a menu is a huge problem for many games that rely on fast inventory management.

To be clear: the problem is not that the ingame movement is changing the cursorposition while no menu is open. It just seems to remember the last cursor position.

I haven't found any solutions or workaround. If somebody has any idea, please tell me. Its driving me nuts.

DDW105113 2026-03-17 github

I think i found the problem its COSMIC what i did was i installed GNOME then i just switch sessions and its fixed. only thing that i saw that the down side is when you reboot or turn on your pc all the themes you installed on GNOME reset to default

https://www.reddit.com/r/pop_os/comments/1pzy02f/installing_gnome_on_pop_os_2404/
i followed this post on how to install it

Proton versions