Hello. I'm writing my own launcher of GZDoom mods and i would like to have an option to select a monitor to start GZDoom in by appending apropriate '+vid_adapter x' to the launch command.
This works fine in Windows, but is problematic in Linux.
I wrote some code that enumerates monitors using libXrandr, but the order of the monitors in the list is different from the order that GZDoom uses for its vid_adapter command,
which means when i select the first monitor from my list and start GZDoom with +vid_adapter 1, it starts on the second monitor and vice versa.
In order for this to work, i must use the exact same way of enumerating monitors as GZDoom so that the order in my launcher matches the order in GZDoom.
Can you please explain how it works?
You do not have the required permissions to view the files attached to this post.