From 99588a8072e71be6b58a8e80b424535dd67fc5d3 Mon Sep 17 00:00:00 2001
From: Sam Lantinga
- The SDL_VIDEO_FULLSCREEN_HEAD environment variable can be set to 0 to place fullscreen SDL windows on the first Xinerama screen. + Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HEAD on X11. +
++ The SDL_VIDEO_FULLSCREEN_DISPLAY environment variable can be set to 0 to place fullscreen SDL windows on the first Xinerama screen.
Added the SDL_VIDEO_FBCON_ROTATION environment variable to control output orientation on the framebuffer console. diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index 070455a85..c78269947 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -548,7 +548,10 @@ int X11_GetVideoModes(_THIS) int w, h; SDL_NAME(XineramaScreenInfo) *xinerama; - const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD"); + const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_DISPLAY"); + if ( !variable ) { + variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD"); + } if ( variable ) { desired = SDL_atoi(variable); }