Monster Hunter Wilds relentlessly grabbing Focus

I have been having this issue that very well may be a game issue not a Bazzite/KDE issue, but I thought I would ask here first. For whatever reason Monster Hunter WIlds will endlessly grab focus, about every 250ms (1/4 a second) The reason I bring it up here is even if changing the KDE Window management, Window behavior, Focus stealing prevention to "Extreme" the game still manages to steal focus... However when set to extreme I can at least get the start menu to stay open to launch things... But still very annoying... Makes sending discord messages impossible while the game is running... Any advice on the subject is appreciated.
Solution:
try run the game through gamescope would be my suggestion
Jump to solution
26 Replies
Solution
HikariKnight
HikariKnight•2mo ago
try run the game through gamescope would be my suggestion
HikariKnight
HikariKnight•2mo ago
fool the game to think the gamescope window is the monitor, it has fixed weirder bugs than what you are describing so its worth a shot
ETHREAL1
ETHREAL1OP•5w ago
I have never used Gamescope before, but if I understand it correctly I can put the gamescope command into the Steam game launch options section. With that said putting this;
gamescope -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync
gamescope -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync
Did not change anything. Does putting the Gamescope command not work from the game launch options like the documentation says it should? Is there some other way I should be attempting to use Gamescope?
HikariKnight
HikariKnight•5w ago
yep and slap -- %command% at the end so the game launches and if you want to use gamescope on multiple games in the future you can look at the tool we include called scopebuddy
HikariKnight
HikariKnight•5w ago
ScopeBuddy - Bazzite Documentation
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices.
ETHREAL1
ETHREAL1OP•5w ago
ok so just making sure,
gamescope -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync -- %command%
gamescope -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync -- %command%
with a space between the -- and %
HikariKnight
HikariKnight•5w ago
yep if you want to use gamescope for more than just 1 game (or you swap between desktop and gamemode) then scopebuddy is recommended as it simplifies managing gamescope 🙂
ETHREAL1
ETHREAL1OP•5w ago
That does seem to have solved the issue, going to do some testing and tweaking, but.
HikariKnight
HikariKnight•5w ago
oh and if you want a gui for scopebuddy, there is one in bazaar https://flathub.org/en/apps/io.github.rfrench3.scopebuddy-gui
Install Scopebuddy GUI on Linux | Flathub
Configure Gamescope and more
ETHREAL1
ETHREAL1OP•5w ago
(just need to dig into all the other gamescope functions like I'm assuming the -e makes it so the steam overlay works for instance) hum... controller not working...
HikariKnight
HikariKnight•5w ago
nope, its supposed to work like that but the -e flag has been broken for a long time and crashes gamescope use scopebuddy fixes the steam overlay and controller support just replace gamescope with scb in the launch options to just use it as a drop in command i made scopebuddy specifically to fix the controller support and the steam ui (the same fix, fixes both) as doing the fix manually is tedious in the launch options, then it evolved from there.
ETHREAL1
ETHREAL1OP•5w ago
so...
scb -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync -b -f -e -- %command%
scb -W 2560 -H 1440 -w 2560 -h 1440 -r 144 --adaptive-sync -b -f -e -- %command%
HikariKnight
HikariKnight•5w ago
yep highly recommend reading the documentation i linked if you want to use it on more games
ETHREAL1
ETHREAL1OP•5w ago
the buddy GUI does not actually seem to tell me the commands per say it does, and it seems to be all or nothing?? like do I need the config file to be the same as the steam game ID?
HikariKnight
HikariKnight•5w ago
there is a global config and a "game specific" config the global config sets the "this is want on almost everything"
ETHREAL1
ETHREAL1OP•5w ago
yes i see that, but how does one actually use the game spsific ID?
HikariKnight
HikariKnight•5w ago
then the game specific ones add and overwrite anything that is also set by the global config explained here
HikariKnight
HikariKnight•5w ago
No description
HikariKnight
HikariKnight•5w ago
ScopeBuddy - Bazzite Documentation
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices.
ETHREAL1
ETHREAL1OP•5w ago
ooooh I see whats been messing me up, I assumed that scb for my use case just fixed the -e command, If i remove it it then works.
HikariKnight
HikariKnight•5w ago
yeah scopebuddy is the replacement for -e among other things
ETHREAL1
ETHREAL1OP•5w ago
yes but if -e is still there 💣
HikariKnight
HikariKnight•5w ago
yep
ETHREAL1
ETHREAL1OP•5w ago
psssst side note, is there a way to hard set the mouse cursor used? there is a cursor argument but it does not seem forced. Not finding anything in the documentation about it either just though I would ask since you have messed with its code. and if not consider it a feature request? Use case: For The King 2 on Linux does not render the in game mouse cursor correctly, renders as all black, normally a gold and black mix, would be nice to just force the OS default cursor if possible, even if thats just on tom of the broken game one.
HikariKnight
HikariKnight•5w ago
no i have been trying to get that working and i am aware of for the king 2 on linux having that issue what you can do is increase the delay though makes the cursor not vanish as fast i think it might be for the gamemode cursor, not the actual cursor
ETHREAL1
ETHREAL1OP•5w ago
if it helps in my own investigations into the matter, it seems to stem from the game engine ad the way it does mouse cursors, the dev has to define it in its entirety. and well the dev of FTK2 (among a lot of things) has not done a great job of coding in general... But what I'm more wondering is if there is a way to just prevent the host cursor from being replaced, on top of the viewport per say but nice to know people are trying, thanks for your time

Did you find this page helpful?