Mouse Escaping fullscreen games

Games that require me to move my mouse quickly or far to the right cause my cursor to appear just at the edge of the next monitor and no further, but as long as I move my mouse back to the left before clicking it doesn’t escape the fullscreen game. If I do click after a quick movement to the right then the mouse entirely escapes the game and I have to click back on to keep controlling the game. The weird part is, it doesnt happen with all games, just few. I’ve made sure my settings are set to full screen, not boarderless windowed. I have also tried a few gamescope steam launch options, but they have either made no difference or caused the game to stop launching entirely.

Anyone have any tips or things I can try?

Edit: image attached to show my mouse going onto the right monitor, but it wont go any further than this and it feels like its still captured by the game until I left click

Summary

Edit 2, more information:
I’m running wayland, I got it to work when i switch to xorg using this gamescope -w 3440 -h 1440 -f -r 160 --force-grab-cursor – %command%

but honestly I would like to just stick to wayland since some games seem to run poorly or not at all when Im on xorg.

Are you using gamescope or gamescope-git? For some reason --force-grab-cursor never works for me on standard but when I use the git edition it works (for my case).

I’ve been using the official gamescope from pacman. I’ll try gamescope-git from the AUR and report back after some testing

Sharing a solution I found to work without having to log out and switch to xorg for problematic games, apparently I can use xwayland with gamescope to run xorg within my wayland environment. Which Im fine with because I dont need to do any extra steps to play the games that just work in wayland.

DISPLAY=:0 gamescope -w 3440 -h 1440 -f -r 160 --force-grab-cursor -- %command%

If I understand correctly, the DISPLAY=:0 makes it run in xwayland?

Nevermind, after a reboot this no longer works for some reason, I am lost so I will just drop my logs and pray someone has an idea

sync: up and running.
chdir "/run/media/victor/ssd/SteamLibrary/steamapps/common/Chivalry 2"
ERROR: ld.so: object '/home/victor/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/victor/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[gamescope] [Info]  console: gamescope version 3.16.14 (gcc 15.1.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info]  scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[gamescope] [Info]  scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info]  scriptmgr: Loading scripts from: '/home/victor/.config/gamescope/scripts'
[gamescope] [Warn]  scriptmgr: Directory '/home/victor/.config/gamescope/scripts' does not exist
wp_color_manager_v1#21: error 0: Windows scRGB is not supported
libdecor-gtk-WARNING: Could not get required globals
Failed to load plugin 'libdecor-gtk.so': failed to init
libdecor-cairo-WARNING: Could not get required globals
Failed to load plugin 'libdecor-cairo.so': failed to init
No plugins found, falling back on no decorations
Game Recording - would start recording game 1824220, but recording for this game is disabled
Adding process 7273 for gameID 1824220
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4090': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
Fossilize INFO: Overriding serialization path: "/run/media/victor/ssd/SteamLibrary/steamapps/shadercache/1824220/fozpipelinesv6/steamapprun_pipeline_cache".
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Error] xdg_backend: Couldn't create Wayland input objects.
[gamescope] [Error] xdg_backend: Failed to initialize input thread
Failed to load plugin 'libdecor-gtk.so': failed to init
SDL_Vulkan_CreateSurface failed: VK_KHR_wayland_surface extension is not enabled in the Vulkan instance.terminate called without an active exception
Game Recording - game stopped [gameid=1824220]
Removing process 7273 for gameID 1824220

using gamescope-git had no difference for me

I am entirely unsure what is the problem entirely, what DE are you using ? I am currently on KDE and it works there but I honest to god can’t see any issues on the log itself. You can try adding using the --expose-waylandcommand and seeing if that works, or try using gamescope-plus on the AUR, built by the Chimera devs. If all else fails, I would send a bug report to the gamescope github.

Sorry for my crashout, I eventually realized the issue gamescopes newest version introduced this bug on wayland and downgrading was able to get it to launch. Its apearing on the wrong monitor now but at least its fixed, so i think the main issue of this thread is (hopefully) resolved. And I hope anyone else frantically googling this issue with gamescope finds this and a downgrade helps them

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.