src/video/x11/SDL_x11modes.c
branchSDL-1.2
changeset 4207 a673f44949d6
parent 4159 a1b03ba2fcd0
child 4223 63fd67e17705
--- a/src/video/x11/SDL_x11modes.c	Mon Sep 21 07:03:29 2009 +0000
+++ b/src/video/x11/SDL_x11modes.c	Mon Sep 21 07:20:51 2009 +0000
@@ -526,7 +526,7 @@
     /* Query Xinerama extention */
     if ( CheckXinerama(this, &xinerama_major, &xinerama_minor) ) {
         /* Find out which screen is the desired one */
-        int desired = 0;
+        int desired = -1;
         int screens;
         int w, h;
         SDL_NAME(XineramaScreenInfo) *xinerama;
@@ -647,7 +647,7 @@
     /* XVidMode */
     if ( !use_xrandr &&
 #if SDL_VIDEO_DRIVER_X11_XINERAMA
-         (!use_xinerama || xinerama_info.screen_number == 0) &&
+         (!use_xinerama || xinerama_info.screen_number == -1) &&
 #endif
          CheckVidMode(this, &vm_major, &vm_minor) &&
          SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display, SDL_Screen,&nmodes,&modes) )