Running 19.04, with a triple monitor setup. I open games full screen on my centre monitor with Wine, simply by running wine game.exe
. However, Wine recently updated, and now it's opening on my left-most monitor. How can I get it back to opening on my centre monitor?
I've tried using the --geometry
option at the end of my Wine command, but it doesn't seem to make a difference. The software still opens in the same spot.
The centre monitor is also confirmed as the primary monitor.
Using Nvidia driver 430.26.
If I recall, X does not create separate screens for each monitor. Rather, it combines the monitors into one logical screen. Looking at nvidia-settings
, I see X Screen 0 shown as 5040x1086. My three monitors are set to 1680x1050, 1920x1080, and 1440x900, from left to right.
I don't know if this is how X Server has always done it, but perhaps my issue could be solved if each monitor was its own separate screen. Is there a way to do that? Or is there a better/simpler solution to this problem?
I had asked a similar question almost a year ago, regarding how to open a terminal on a specific monitor. Unfortunately, the same method does not seem to apply to the situation here.
EDIT:
Information as shown by nvidia-settings
indicates that X Screen 0
, which contains my three monitors, has a display name of hiigaran:0.0
.
As per earthmeLon's suggestion, I attempted to prepend SDL_VIDEO_FULLSCREEN_HEAD
to the command I wished to use to start the application in question. The following three commands were used to test which monitor the application would open on:
SDL_VIDEO_FULLSCREEN_HEAD=0 wine game.exe
SDL_VIDEO_FULLSCREEN_HEAD=1 wine game.exe
SDL_VIDEO_FULLSCREEN_HEAD=2 wine game.exe
No difference was observed between using any of these commands, and using wine game.exe
on its own. The application still opened full screen on the left-most monitor.