If you ran the Steam process or Flatpak with a custom DISPLAY #, you might have noticed that games continue to use DISPLAY=:0 regardless
The reason for this is that Valve created their own container runtime called 'Steam Linux Runtime', and for whatever reason, they made the containers disregard host environment and did not give users the ability to set custom environment variables.
- Right-click the Linux Runtime in your library
- Manage
- Browse Local Files
- Edit the file with the name that contains the words "entry point"
- At the bottom, just above the exit / main, add DISPLAY=:1 or whatever number
- Now the games should run on the correct display
We just need them to add a simple way to configure our own environment variables for the container runtime. Tell them you want this, maybe they'll listen.