From: David Hill Date: Fri, 20 Jul 2012 20:03:27 +0000 (-0400) Subject: move out of the loop. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=ae0c30c83f93dcc7f234d67beb3eb3b7dd826381;p=spectrwm.git move out of the loop. --- 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);