From af63bb8f4222e419298301811a8931ff5a43515b Mon Sep 17 00:00:00 2001 From: David Gow Date: Sat, 13 Jul 2013 11:06:34 +0800 Subject: [PATCH] Only get desktop modes from Xinerama if we can't use XRandR (fix #1956) --- src/video/x11/SDL_x11modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index ea2cb46ad..c2103467d 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -704,9 +704,9 @@ X11_GetDisplayModes(_THIS, SDL_VideoDisplay * sdl_display) 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;