Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xwayland] cursor does not reset to center in games #10901

Open
madness742 opened this issue May 17, 2024 · 1 comment
Open

[xwayland] cursor does not reset to center in games #10901

madness742 opened this issue May 17, 2024 · 1 comment

Comments

@madness742
Copy link

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

cs2_mouse_bug.mp4

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)

@madness742
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants