
Untitled
By: a guest on
Jul 31st, 2012 | syntax:
None | size: 1.73 KB | hits: 17 | expires: Never
diff --git a/spectrwm.c b/spectrwm.c
index 7d2d1a8..ce322bd 100644
--- a/spectrwm.c
+++ b/spectrwm.c
@@ -7721,8 +7721,8 @@ scan_xrandr(int i)
#endif /* SWM_XRR_HAS_CRTC */
struct swm_region *r;
int num_screens;
- xcb_randr_get_screen_resources_current_cookie_t src;
- xcb_randr_get_screen_resources_current_reply_t *srr;
+ xcb_randr_get_screen_resources_cookie_t src;
+ xcb_randr_get_screen_resources_reply_t *srr;
xcb_randr_get_crtc_info_cookie_t cic;
xcb_randr_get_crtc_info_reply_t *cir = NULL;
xcb_randr_crtc_t *crtc;
@@ -7747,9 +7747,9 @@ scan_xrandr(int i)
/* map virtual screens onto physical screens */
#ifdef SWM_XRR_HAS_CRTC
if (xrandr_support) {
- src = xcb_randr_get_screen_resources_current(conn,
+ src = xcb_randr_get_screen_resources(conn,
screens[i].root);
- srr = xcb_randr_get_screen_resources_current_reply(conn, src,
+ srr = xcb_randr_get_screen_resources_reply(conn, src,
NULL);
if (srr == NULL) {
new_region(&screens[i], 0, 0,
@@ -7759,7 +7759,7 @@ scan_xrandr(int i)
} else
ncrtc = srr->num_crtcs;
- crtc = xcb_randr_get_screen_resources_current_crtcs(srr);
+ crtc = xcb_randr_get_screen_resources_crtcs(srr);
for (c = 0; c < ncrtc; c++) {
cic = xcb_randr_get_crtc_info(conn, crtc[c],
XCB_CURRENT_TIME);