Technical support > Linux

xinerama multi monitor setup

(1/1)

squishles:
I'm trying to get ufoai to launch in a window on only one screen, but nothing I try seems to be working :(

I'm on a kde desktop with fglrx drivers, and xinerama(I believe xinerama is what's making it recognize as only one screen and launch between the two screens).

Mattn:
fullscreen in linux is.... strange. if you are using sdl1 i don't think that will work. maybe some magic env variable or stuff like that exists. But if you are using sdl2, i think it should work. multimonitor stuff got a lot of love in that release.

Knute:
You know, I was just looking in my shell and ran across a possible "magic" env variable in my configs that I had commented out a while back.


--- Code: ---#Multihead fix for SDL
export SDL_VIDEO_FULLSCREEN_HEAD=0
--- End code ---

I use zsh, so that's set up for zsh.
If I remember correctly, what this does is set full screen sdl on only one monitor.  Primary would be 0, secondary 1, etc...

Remember that after setting the variable, you either need to log out and log back in, or start a new shell, and run the game from that shell, or else it won't take effect.

HTH

Navigation

[0] Message Index

Go to full version