From 1130f1af3f80774c23af388123e759b9b39c5989 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 17 Feb 2013 13:57:25 +0100 Subject: [PATCH] Fixed uses of wrong loop variable. --- src/x11_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 34905f76..fefd2c5a 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -173,11 +173,11 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found) RROutput output; ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]); - output = ci->outputs[i]; + output = ci->outputs[0]; for (j = 0; j < ci->noutput; j++) { - if (ci->outputs[i] == primary) + if (ci->outputs[j] == primary) { output = primary; break;