UFO:Alien Invasion

Technical support => Linux => Topic started by: squishles on August 24, 2013, 11:33:23 pm

Title: xinerama multi monitor setup
Post by: squishles on August 24, 2013, 11:33:23 pm
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).
Title: Re: xinerama multi monitor setup
Post by: Mattn on August 25, 2013, 12:06:31 pm
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.
Title: Re: xinerama multi monitor setup
Post by: Knute on September 22, 2013, 08:48:55 pm
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: [Select]
#Multihead fix for SDL
export SDL_VIDEO_FULLSCREEN_HEAD=0

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