src/video/x11/SDL_x11modes.c
changeset 9984 df034dc2f547
parent 9944 88608984f245
child 9998 f67cf37e9cd4
     1.1 --- a/src/video/x11/SDL_x11modes.c	Tue Dec 29 01:09:58 2015 -0500
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Tue Dec 29 02:16:14 2015 -0500
     1.3 @@ -376,8 +376,7 @@
     1.4          for (screen = 0; screen < screencount; screen++) {
     1.5  
     1.6              /* we want the primary output first, and then skipped later. */
     1.7 -            if ((looking_for_primary && (screen != default_screen)) ||
     1.8 -                (!looking_for_primary && (screen == default_screen))) {
     1.9 +            if (looking_for_primary && (screen != default_screen)) {
    1.10                  continue;
    1.11              }
    1.12  
    1.13 @@ -421,7 +420,7 @@
    1.14                  XRRCrtcInfo *crtc;
    1.15  
    1.16                  /* The primary output _should_ always be sorted first, but just in case... */
    1.17 -                if ((looking_for_primary && ((screen != default_screen) || (res->outputs[output] != primary))) ||
    1.18 +                if ((looking_for_primary && (res->outputs[output] != primary)) ||
    1.19                      (!looking_for_primary && (screen == default_screen) && (res->outputs[output] == primary))) {
    1.20                      continue;
    1.21                  }