# HG changeset patch # User David Gow # Date 1373684794 -28800 # Node ID 93a922d61a043b11c08b55176bc0400c5e7b359a # Parent 172b0c6e51d666c2ca39e746723ae16581c0d475 Only get desktop modes from Xinerama if we can't use XRandR (fix #1956) diff -r 172b0c6e51d6 -r 93a922d61a04 src/video/x11/SDL_x11modes.c --- a/src/video/x11/SDL_x11modes.c Fri Jul 12 10:44:55 2013 -0700 +++ b/src/video/x11/SDL_x11modes.c Sat Jul 13 11:06:34 2013 +0800 @@ -704,9 +704,9 @@ mode.driverdata = modedata; SDL_AddDisplayMode(sdl_display, &mode); } - else + else if (!data->use_xrandr) { - /* Add the current mode of each monitor otherwise */ + /* Add the current mode of each monitor otherwise if we can't get them from xrandr */ mode.w = data->xinerama_info.width; mode.h = data->xinerama_info.height; mode.refresh_rate = 0;