From ae0c30c83f93dcc7f234d67beb3eb3b7dd826381 Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 20 Jul 2012 16:03:27 -0400 Subject: [PATCH] move out of the loop. --- spectrwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spectrwm.c b/spectrwm.c index 0e2bc12..44de9d9 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -7412,8 +7412,9 @@ scan_xrandr(int i) return; } else ncrtc = srr->num_crtcs; + + crtc = xcb_randr_get_screen_resources_current_crtcs(srr); for (c = 0; c < ncrtc; c++) { - crtc = xcb_randr_get_screen_resources_current_crtcs(srr); cic = xcb_randr_get_crtc_info(conn, crtc[c], XCB_CURRENT_TIME); cir = xcb_randr_get_crtc_info_reply(conn, cic, NULL); -- 1.7.10.4