project-navigation
Personal tools

Author Topic: xinerama multi monitor setup  (Read 3814 times)

Offline squishles

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
xinerama multi monitor setup
« 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).

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: xinerama multi monitor setup
« Reply #1 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.

Offline Knute

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: xinerama multi monitor setup
« Reply #2 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