src/video/x11/SDL_x11modes.c
changeset 6506 305f0fcc0e99
parent 6502 f41a82de351e
child 6537 85cf169db434
     1.1 --- a/src/video/x11/SDL_x11modes.c	Fri Sep 28 14:21:15 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Fri Sep 28 14:22:18 2012 -0700
     1.3 @@ -217,6 +217,7 @@
     1.4              displaydata->screen = 0;
     1.5              displaydata->use_xinerama = xinerama_major * 100 + xinerama_minor;
     1.6              displaydata->xinerama_info = xinerama[screen];
     1.7 +            displaydata->xinerama_screen = screen;
     1.8          }
     1.9          else displaydata->screen = screen;
    1.10  #else
    1.11 @@ -642,8 +643,8 @@
    1.12  
    1.13          /* Update the current screen layout information */
    1.14          xinerama = XineramaQueryScreens(display, &screencount);
    1.15 -        if (xinerama && data->screen < screencount) {
    1.16 -            data->xinerama_info = xinerama[data->screen];
    1.17 +        if (xinerama && data->xinerama_screen < screencount) {
    1.18 +            data->xinerama_info = xinerama[data->xinerama_screen];
    1.19          }
    1.20          if (xinerama) XFree(xinerama);
    1.21