Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set winecfg "Graphics/Automatically capture the mouse in full-screen windows" option #648

Closed
gmn42 opened this issue May 16, 2024 · 3 comments · Fixed by #654
Closed

Set winecfg "Graphics/Automatically capture the mouse in full-screen windows" option #648

gmn42 opened this issue May 16, 2024 · 3 comments · Fixed by #654
Labels
enhancement New feature or request

Comments

@gmn42
Copy link
Contributor

gmn42 commented May 16, 2024

After (re)running the installer for Fallout 4 (and resetting the wine environment), I need to manually run protontricks 377160 winecfg and set the "Automatically capture mouse in full-screen windows" option to prevent the mouse from escaping the monitor running the game (it is a secondary monitor on a dual-head setup). It would be helpful if the installer could do this automatically, as it is a general problem with FO4 on dual-monitor setups. When this option is set, I can still access the desktop and other windows by pressing the Super key. I don't believe this option would cause problems when running on a single display setup, but that would need to be tested.

image

I have no idea how to script winecfg now, but will try to figure it out and contribute a patch if needed. It may well be helpful for other games supported by the installer, but I have no way to test.

@rockerbacon rockerbacon added the enhancement New feature or request label May 16, 2024
@rockerbacon
Copy link
Owner

First step is investigating how to automate this, the rest is easy. I do know that Winecfg is just a tool for configuring registry keys, and automating registry key modifications is fairly simple.

Here are some resources from WineHQ for people who may want to look into this:

@gmn42
Copy link
Contributor Author

gmn42 commented May 16, 2024

Okay, I found the registry entry (below), but it looks like it's a supported winetricks command, so the easy fix is just to set game_protontricks=("xaudio2_7=native" "grabfullscreen=y") in gamesinfo/fallout4.sh. Should i submit a PR?

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"GrabFullscreen"="Y"

@rockerbacon
Copy link
Owner

Even better if there’s a winetricks verb. Feel free to send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants