Mouse gets stuck in one direction while playing some games since I upgraded to gnome-shell 46 and mutter 46.
Affected version
OS: Arch Linux KERNEL: 6.8.2-zen2-1-zen (all packages up-to-date!) CPU: AMD Ryzen 7 5800X3D 8-Core GPU: AMD Radeon RX 6800 XT (radeonsi, navi21, LLVM 17.0.6, DRM 3.57, 6.8.2-zen2-1-zen) GPU DRIVER: 4.6 Mesa 24.0.3-arch1.2 DE: Gnome 46 in Wayland (gnome-shell 46.0-1, mutter 46.0-1) WM: Mutter RAM: 32 GB Wine Version 9.0
My Monitor setup: 0: +*DP-1 2560/600x1440/340+1920+0 DP-1 - Primary Monitor 1: +DP-2 1920/600x1080/340+0+0 DP-2 - Secondary Monitor
Issue is reproduced when all gnome extensions are disabled.
Bug summary
I noticed that on some Fullscreen games my mouse gets stuck around 20% of the screen, feels like I hit a invisible wall - vertically - Monitor 1 and horizontally - Monitor 2 if I change the game to Monitor 2. There is always one direction the mouse cannot move. This only happened after updating from Gnome 45.5 (gnome-shell 45.5-1 and mutter 45.5-1) to Gnome 46, I have been testing different wine/proton versions and always experience the same issue.
Steps to reproduce
- Open a game in Fullscreen, (example of games I was able to reproduce the issue constantly: Overwatch 2, Horizon Zero Dawn, Ghost Recon Breakpoint).
- On the menu of the game try to move the mouse either from one side of the screen to the other side, or up and down.
- Mouse will get stuck, if I hit alt-tab i am able to move it to the other side of the screen, but once I pass the invisible wall/line it gets stuck again.
What happened
The mouse gets stuck, feels like I am hitting a invisible wall, this wall can be vertical or horizontal depending on the monitor I choose to render the game.
What did you expect to happen
Mouse shouldn't get stuck when window manager (mutter) is handling wine/proton. I should be able to have the mouse captured in the fullscreen game/window, allowing me to mouse the mouse between these boundaries without any restrictions.
Relevant logs, screenshots, screencasts etc.
Workarounds that I found while investigating the issue:
- Disable one of the monitors - I noticed this only happens with multi-monitor setup.
- Change to Xorg - I only experience this issue in Wayland, in Xorg I have no issues.
- Setting both monitors to the same resolution 1920x1080. - This appears to solve the issue, but is a restrictive workaround since both monitors have different native resolutions.
- In winecfg unchecking "Allow the window manager to control the windows" seems to fix the issue, but causes other issues, like not seeing the window in Alt-Tab, and it seems the keyboard stops working.
- Downgrading to gnome-shell 45.5-1 and mutter 45.5-1, I cannot replicate this issue on Wayland.