Mouse escapes main monitor sometimes while gaming

Any ideas?
20 Replies
HikariKnight
HikariKnight4mo ago
put the game inside gamescope with --force-grab-cursor as an argument for gamescope. it will make it so you have to click into the gaming window and alt tab out of it to get the mouse out of the window
LivingSoul
LivingSoul2mo ago
When enabling gamescope on fallout 4 via lutris (GOG) to fix this issue, It forces the launcher to go full screen and after clicking play within the launcher, It simply refuses to launch the game. adding --force-grab-cursor to the game in the lutris game options "arguments" section with gamescope disabled also does not fix the issue the only time my cursor does not run off of the main monitor is when I am actively holding mouse 1 (obviously not a viable solution) The issue is persistent between fullscreen, windowed, and borderless windowed
HikariKnight
HikariKnight2mo ago
This obviously won't work because the argument is for gamescope. I do not use heroic or lutris myself as all my games are on steam so I am unsure what else to try
LivingSoul
LivingSoul2mo ago
I figured it wouldnt but always worth seeing
LivingSoul
LivingSoul2mo ago
FIX FOUND : In lutris, click on the triangle next to wine, then click "wine configuration" and ensure that under graphics, "Automatically capture the mouse in full screen windows" is ENABLED NOTE : Only works in full screened games
No description
The Dark Wizard
The Dark WizardOP2mo ago
What about games that are played via steam with proton? I used winecfg and that option is not there.
HikariKnight
HikariKnight2mo ago
protontricks instead of winecfg need to use the flatpak and you need to give it access to the steamlibrary locations you have
The Dark Wizard
The Dark WizardOP2mo ago
Thats how I got to Winecfg, from protontricks.
The Dark Wizard
The Dark WizardOP2mo ago
No description
The Dark Wizard
The Dark WizardOP2mo ago
No description
HikariKnight
HikariKnight2mo ago
only other way i can think of it then is using gamescope with --force-grab-cursor might be removed in proton itself
The Dark Wizard
The Dark WizardOP2mo ago
That's what I curerntly do, would be nice to not have to use gamescope because it breaks the steam overlay, but it is what it is.
HikariKnight
HikariKnight2mo ago
yeah its annoying
The Dark Wizard
The Dark WizardOP2mo ago
@HikariKnight This always worked but its not working today for helldivers. Is there something wrong with my code?
gamescope -w 2560 -h 1440 --fullscreen --force-grab-cursor -- %command%
gamescope -w 2560 -h 1440 --fullscreen --force-grab-cursor -- %command%
HikariKnight
HikariKnight2mo ago
it looks fine
The Dark Wizard
The Dark WizardOP2mo ago
I wonder if it has something to do with the fact that helldivers with this command starts in my second monitor instead and I have to move it over manually to the right one Would this be a gnome issue? Trying to see if a report exists in the proper repo
HikariKnight
HikariKnight2mo ago
Haven't had time to test on kde. Having a hectic week until Wednesday next week
The Dark Wizard
The Dark WizardOP2mo ago
Take your time, not that I'd want to rebuild into KDE, I don't think bazzite supports going from Gnome to KDE
HikariKnight
HikariKnight2mo ago
Upstream also recommends against it
The Dark Wizard
The Dark WizardOP2mo ago
If it did, I wouldn't mind Yeah I love me gnome but the two desktops for gaming have this issue :< @Kyle Gospo I apologize for the tag, seen or know anything about this? This one seems to be behaving a lot better compared to the previous one.
gamescope -W 2560 -H 1440 -r 144 -f -g --force-grab-cursor --force-windows-fullscreen -- %command%
gamescope -W 2560 -H 1440 -r 144 -f -g --force-grab-cursor --force-windows-fullscreen -- %command%
But i'll see if it also breaks out of the monitor even with gamescope like the previous one over the course of the week
Want results from more Discord servers?
Add your server