Way to force cursor grab for a game window

Hello, I am running Bazzite on a desktop with two monitors and I have a question. Is it possible to force cursor grabbing to a window for a game?
I recently ran into some issues with Fallout 4. The game is set to Exclusive Fullscreen, and it's cursor respects its own window, but the OS cursor pops right out and continues going to the other screen.
Similarly, I have ran into other games such as Age of Wonders 4 which really just offer windowed borderless. For strategy game is not as much of an issue, but I will like to get have a way to lock to cursor that is not dependent on the developer to add a bespoke setting.
Solution
Alright, did some testing and it works.
For anyone finding this thread for Lutris:
-Go to the game and right click, the configure.
-Go to System Options. Scroll down to Gamescope.
-Toggle Gamescope on. Toggle "Relative Mouse Mode" on. Set resolutions to your monitor resolutions for both Output and Game. Then, make sure Window Mode is Fullscreen.

This cause Fallout to lock the mouse inside the screen. It does seem that it does not shut down 100% properly but stopping the game in Lutris works.

As for Fallout London. Sadly, this breaks F4SE. Disabling the above settings works, but you go back to the initial mouse issue with Fallout 4. I do think this issue is caused by weirdness with Gamescope so this it out of scope of the original issue.

Thanks @HikariKnight for all the help.
Was this page helpful?