From 493fadd5c1ed70d8cc5518361a9c8da76267d319 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 8 Nov 2013 14:04:35 -0800 Subject: [PATCH] Fixed spot where SDL was assuming that two displays having the same origin means they're the same display. Changed it to check for the same extents instead. (Sam actually wrote this, I'm just reviewing and checking it in.) --- src/video/x11/SDL_x11modes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index a4c242cdc..ad3b56f34 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -552,7 +552,8 @@ X11_InitModes(_THIS) in all cases. Anybody want to give this some love? */ crtc = X11_XRRGetCrtcInfo(data->display, res, output_info->crtc); - if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y) { + if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y || + crtc->width != mode.w || crtc->height != mode.h) { X11_XRRFreeOutputInfo(output_info); X11_XRRFreeCrtcInfo(crtc); continue;